6 ms·
In Firefox, it seems like you can only catch Clipboarddata on input boxes still document.body.addEventListener("paste", function(e){ console.log("p
by aaronm67 13y ago
In Firefox, it seems like you can only catch Clipboarddata on input boxes still
document.body.addEventListener("paste", function(e){
console.log("paste event fired")
})
In Chrome, this will fire when you paste, in Firefox it will not.
- masklinn 13y agoIt might be restricted to focusable/editable components, e.g. a `contenteditable` block should work.
- aaronm67 13y agoYep, you're correct http://jsbin.com/odupog/1/edit http://jsbin.com/odupog/1/edit Either way, should alleviate some of the privacy concerns, as you can only get ClipboardData from elements where "paste" has a visible effect.