August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onFocus="command"
The onFocus event handler of the Radio object is an event handler that notifies you when the focus is set on the radio button.
In Listing 7.441, the onFocus event handler notifies the user with a text message when the focus is set on the radio button.
<html> <head> <title> Example of the radio onFocus event handler</title> </head> <body> <script language="JavaScript"> <!--Hide // function sets the focus to box 1 function showFocus(){ document.form1.text1.value = "Focus set on Box 1"; } // End Hide ---> </script> <form name="form1"> Click on the radio button <br><br> <input ... |
Read now
Unlock full access