Is it possible to read the clipboard contents in Chrome without an onPaste handler?
Is it possibl开发者_Python百科e to read the clipboard without user interaction? Just like IE's window.clipdData.getData("Text")
?
I've seen other questions, such as Is it possible to read the clipboard contents in Firefox, Safari, and Chrome using Javascript?, but the onpaste event is not what we are looking for.
I don't think it's possible due to privacy/safety reasons. You could sniff the clipboard in a loop and catch passwords copied elsewere.
( That password sniffing seems worth trying if it works in IE :D )
精彩评论