adam pery
adam pery

Reputation: 61

Paste from clipboard

How can I paste from clipboard using jQuery ?

Upvotes: 6

Views: 4880

Answers (3)

powtac
powtac

Reputation: 41050

There is a very good JS / Flash library for this:

Zero Clipboard

Its currently the only libaray which handles the latest flash plugin 10 as well!

Upvotes: 1

eyelidlessness
eyelidlessness

Reputation: 63529

It may be possible in some browsers/environments using document.execCommand, but shouldn't be relied on and you're better off finding another solution.

For posterity:

document.execCommand('paste', false, null);

Upvotes: 1

rahul
rahul

Reputation: 187050

I don't think you can do this using javascript. Since clipboard data is part of the operating system your javascript code ill not be able to access that.

Upvotes: 2

Related Questions