TOC PREV NEXT INDEX

Put your logo here!


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. 


mozilla.org | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX