August 1999
Intermediate to advanced
1488 pages
72h 53m
English
radio.type
The type property of the Radio button represents the button's TYPE HTML attribute. For this object, it is always radio.
Listing 7.442 shows an example of the type property.
<html>
<head>
<title> Example of the radio type property</title>
</head>
<body>
<form name="form1">
<input type="radio" name=button1>Box 1
<br><br>
<input type="button" value="Get Button Type"
onClick='alert("The button type is: " + document.form1.button1.type)'>
</form>
</body>
</html>
|
Read now
Unlock full access