JavaScript mendeteksi konten pasta

document.addEventListener("paste", function(e) {
	let pasted = e.clipboardData.getData('text/html');//with full HTML
  //let pasted = e.clipboardData.getData('text/plain');//text only
     alert(pasted);
});
Friendly Hawk