Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <input type="text" oncopy="myFunction()" value="Try to copy this text"> <p id="demo"></p> <script> function myFunction() { document.getElementById("demo").innerHTML = "You copied text!" } </script> </body> <!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml5_ev_oncopy by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:09:17 GMT --> </html>
Result:
Try it Yourself - © w3schools.com