TOC PREV NEXT INDEX

domref



window.onreset


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">&nbsp;</div>
 
</body>
 
</html>
 

Notes

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

Specification

DOM Level 0. Not part of specification.
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX