The oncut
attribute event is triggered
when cutting the content of an element.
None.
<element oncut="script or Javascript function name">
ALL HTML elements
oncut |
Yes | Yes | Yes | Yes | Yes |
<!DOCTYPE html>
<html>
<body>
<!-- w w w.ja v a 2s .c o m-->
<p oncut="myFunction()">Cut me by pressing ctrl-x</p>
<script>
function myFunction() {
console.log("cut!");
}
</script>
</body>
</html>