Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Oh, I see. Yeah, Flash is a different story, I guess, but for JavaScript you can't get at the clipboard unless someone pastes in all the browsers I'm aware of.


There's a library for accessing the clipboard within JS[1]. As far as I can tell, the HTML5 APIs for it are designed to stop this from being used to steal your clipboard but I somewhat doubt its effectiveness.

[1]: https://clipboardjs.com/


That seems to let you write to the clipboard, not read it.


The API used (document.execCommand) supports "paste" which lets you paste the current contents of the clipboard. However, it doesn't appear to work in my version of Chromium.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: