Lazer
Lazer

Reputation: 94830

How to automatically copy from clipboard when the extension icon is clicked?

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

Upvotes: 0

Views: 577

Answers (1)

serg
serg

Reputation: 111265

Sorry, it is not possible, not even with flash. Flash 9 was able to access the clipboard, but then in Flash 10 this was prohibited. Flash 10 now can only copy to clipboard, and only when you actually click it.

There used to be experimental.clipboard.* API in Chrome (or something like that), but it is gone now.

Upvotes: 2

Related Questions