Edit This Code:
See Result »
<
!DOCTYPE
html
>
<
html
>
<
body
>
<
p
contenteditable
="true"
oncut
="myFunction()"
>
Try to cut this text
<
/p
>
<
script
>
function
myFunction() {
alert(
"You cut text!"
);
}
<
/script
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <body> <p contenteditable="true" oncut="myFunction()">Try to cut this text</p> <script> function myFunction() { alert("You cut text!"); } </script> </body> </html>
Result:
Privacy Policy