I am creating a simple text box in my Google chrome extension popup:
<input id="textbox" type="text" size="25" style="height:30px;font-size:14pt;">
</input>
The textbox will be used to perform a search.
I have already set the focus on the textbox
document.getElementById('textbox').focus()
How can I
- automatically copy the text on the system clipboard to the textbox, and
- select the copied text ?