<html>
<body>
<input type="text" onpaste="myFunction()" value="Try to paste something in here" size="40">
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("demo").innerHTML = "You pasted text!";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml5_ev_onpaste by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:09:27 GMT -->
</html>