HTML Event attribute: oncut
[this page | pdf | back links]
The HTML oncut attribute specifies the event
that is triggered when the content of an element is cut. It applies to all
visible elements.
EXAMPLE:
HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body>
oncut: try cutting the middle characters of this <span style="background-color: yellow;" oncut="myOncut()">element</span><br>
<script>
function myOncut() {alert("Cutting element");}
</script>
</body>
</html>
|
NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes