JavaScript Reference/Event Handlers Reference/onReset — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
Содержание
"onReset" Example
<source lang="javascript">
<html> <body>
Input some text in the text field below.
<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>
</source>
"onReset" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<form> | +----------------+--------------------------------------------------------------+
</source>
"onReset" Properties
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Properties |altKey altLeft | | |ctrlLeft returnValue | | |shiftLeft srcElement | | |type | +----------------+--------------------------------------------------------------+
</source>
"onReset" Syntax and Note
<source lang="javascript">
Note:
This event fires when the form is reset.
</source>