The Wayback Machine - https://web.archive.org/web/20080914170822/http://developer.mozilla.org:80/en/DOM/window.onreset

Mozilla.com

  1. MDC
  2. Main Page
  3. DOM
  4. window.onreset

Some features of this site require JavaScript.

window.onreset

« Gecko DOM Reference

Summary

An event handler for the reset event on the window.

Syntax

window.onreset = funcRef;

Parameters

  • funcRef is a reference to a function.

Example

<html>
<script>
function reg() {
  window.captureEvents(Event.RESET);
  window.onreset = hit;
}
 
function hit() {
 alert('hit');
}
</script>

<body onload="reg();">
 <form>
   <input type="reset" value="reset" />
 </form>
 <div id="d"> </div>
</body>
</html>

Notes

The reset event is raised when the user clicks a reset button in a form (<input type="reset"/>).

Specification

Not part of specification.

Page last modified 06:34, 9 Feb 2006 by Callek

Files (0)

 
 
 
Morty Proxy This is a proxified and sanitized view of the page, visit original site.