Ke.
Ke.

Reputation: 2586

Get and Set clipboard with JavaScript

I have seen a few threads explaining that Flash can be used to set the clipboard data in Mozilla and Internet Explorer, it's easy, etc.

For example Greasemonkey\JavaScript Copy to Clipboard button

However, I would like to read the clipboard and remove certain items before setting it. Is there any way to do this?

So.. Is it possible then to detect whether copying and pasting is occuring? Then redirect them to another URL?

Upvotes: 2

Views: 4097

Answers (1)

Alex Sexton
Alex Sexton

Reputation: 10451

Reading the clipboard is a pretty big security issue. Even if you can do it, it's not considered a friendly tactic, and I would advise against it, especially if you plan on changing it.

Upvotes: 5

Related Questions