August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onReset="command"
The onReset method of the Form object executes JavaScript code when a reset event occurs.
Listing 7.263 demonstrates the use of the onReset event handler. The JavaScript function checks to see if the Reset button has been clicked. If so, all the text values are reset to a specified value.
<html> <head> <title>Using the onReset event handler</title> </head> <body> <script language="JavaScript"> <!-- Hide // function displays a message when the onReset event handler determines that // the reset button has been pressed. function showMsg(){ document.form2.msg.value = "You have cleared ... |
Read now
Unlock full access