<!DOCTYPE html>
<html lang="en-US">
<body>
<input type="text" value="Try to cut this text">
<p id="point"></p>
<script>
var x = document.getElementsByTagName("input")[0];
function myFunction() {
document.getElementById("point").innerHTML = "You cut text!";
}
x.oncut = myFunction;
</script> </body>
</html>