jayarjo
jayarjo

Reputation: 16726

Is there any way/tool to see what is currently in the Clipboard?

I'm familiarizing myself with Clipboard API in the browser. Now I thought it might be helpful if I could actually see what is currently in the Clipboard. Maybe extension for Developer Tools?

Upvotes: 1

Views: 1003

Answers (1)

Gideon Pyzer
Gideon Pyzer

Reputation: 24028

You can only access the clipboard data via the Clipboard API events, using event.clipboardData.getData('text/plain'). You can't access it via the window object (except in IE), due to the huge security risk of being able to access and modify the clipboard without the user knowing.

Upvotes: 1

Related Questions