<html>
<body>
<input type="text" oncut="myFunction()" value="Try to cut this text">
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("demo").innerHTML = "You cut text!";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_oncut by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:02:54 GMT -->
</html>