<html>
<head>
<script>
function message() {
alert("This alert box was triggered by the onreset event handler");
}
</script>
</head>
<body>
<form onreset="message()">
Enter your name: <input type="text" size="20">
<input type="reset">
</form>
</body>
<!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_events_onreset by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:40:42 GMT -->
</html>