August 1999
Intermediate to advanced
1488 pages
72h 53m
English
radio.form
The form property of the Radio object is used to reference the Form object that contains the Radio box.
Listing 7.436 shows an example of how the form property can be used to get the name of the form that contains the Radio object.
<html>
<head>
<title> Example of the radio form property</title>
</head>
<body>
<form name="form1">
<input type="radio" name=button1>Box 1
<br>
<input type="radio" name=button2>Box 2
<br><br>
<input type="button" value="Get Form Name"
onClick='alert("The form name is: " + document.form1.button1.form.name)'>
</form>
</body>
</html>
|
Read now
Unlock full access