<!DOCTYPE html>
<html lang="en-US">
<body>
<input type="text" oncopy="myFunction()" value="Try to copy this text">
<p id="point"></p>
<script>
function myFunction(x){
document.getElementById("point").innerHTML = "You copied text!";
}
</script> </body>
</html>