Javascript examples for DOM Event:oncut
Execute a JavaScript when cutting some text of a <p> element
<!DOCTYPE html> <html> <body> <p contenteditable="true" oncut="myFunction()">Try to cut this text</p> <script> function myFunction() {// ww w . ja v a 2 s . com console.log("You cut text!"); } </script> </body> </html>