I'm writing a browser extension for Firefox and would like to use javascript to extract the contents of the user's clipboard WITHOUT using a "copy" or "paste" event listener. I reviewed this solution but it won't work in my case because it uses a "paste" event listener to trigger the extraction of the user's clipboard contents. Is there a way to get the user's clipboard contents using Javascript without employing an event listener?
Asked
Active
Viewed 24 times
1
-
no, you need an approved user-initiated event fro security reasons. – dandavis May 31 '18 at 19:41