Hello,
I am on google extension development, when a popup is clicked, the input box present in the popup.html file should contain the selected text of the current webpage.
example textbox,
<input id="searchBox" type="text" />
when a text is selected in a webpage, the textbox should contain the selected word. I tried with chrome.extension.getBackgroundPage().getSelection()
but it is not working.
Please help