August 1999
Intermediate to advanced
1488 pages
72h 53m
English
radio.defaultChecked
The defaultChecked property of the Radio object is a Boolean value that reports which radio buttons contain the HTML CHECKED attribute. If the CHECKED attribute is contained in the Radio object, true is returned. Otherwise, false is returned.
Listing 7.434 shows how the defaultChecked property is used to find out which box is checked by default.
<html> <head> <title> Example of the radio defaultChecked property</title> </head> <body> <script language="JavaScript"> <!-- Hide function checkBox(){ if(document.form1.button1.defaultChecked == true){ alert("Box1 is ... |
Read now
Unlock full access