I tried to access the clipboard but Chrome and Firefox only interpret undefined
. How can I improve the code?
JavaScript:
function handlePaste(e) {
for (var i = 0 ; i < e.clipboardData.items.length ; i++) {
var item = e.clipboardData.items[i];
console.log(item );