<html>
<body>
<p>This example demonstrates how to assign an "onpaste" event to an input element.</p>
<input type="text" onpaste="myFunction()" value="Try to paste something in here" size="40">
<script>
function myFunction() {
alert("You pasted text!");
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onpaste_html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:04:47 GMT -->
</html>