JavaScript Reference/Event Handlers Reference/onReset

Материал из Web эксперт
Перейти к: навигация, поиск

"onReset" Example

    
<html>
<body>
<p>Input some text in the text field below.</p>
<form name="form1" 
      method="post" 
      action="" onreset="alert("The form is being reset")">
   <input type="text" value="">
   <input type="reset" value="Reset">
</form>
</body>
</html>



"onReset" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<form>                                                        |
+----------------+--------------------------------------------------------------+



"onReset" Properties

+----------------+--------------------------------------------------------------+
| Properties     |altKey                          altLeft                       |
|                |ctrlLeft                        returnValue                   |
|                |shiftLeft                       srcElement                    |
|                |type                                                          |
+----------------+--------------------------------------------------------------+



"onReset" Syntax and Note

Note:
    
This event fires when the form is reset.