August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onFocus="command"
The onFocus event handler is used to specify when the focus is set on the Reset button.
Listing 7.453 shows the onFocus event handler being used to inform the user when the focus is set.
<html> <head> <title> Example of the reset onFocus event handler</title> </head> <body> <script language="JavaScript"> <!-- Hide function setMsg(){ document.form2.text1.value = "Focus is set on the reset button."; } // End Hide ---> </script> <form name="form1"> Click the reset button. <br><br> Enter Name: <input type="text" Name="name" Size=15> <br> Enter Phone: <input type="text" ... |
Read now
Unlock full access