August 1999
Intermediate to advanced
1488 pages
72h 53m
English
radio.value
The value property of the Radio object represents the VALUE attribute of the HTML <input> tag used to create the radio button.
Listing 7.443 shows how to access the value property.
<html>
<head>
<title> Example of the radio value property</title>
</head>
<body>
<form name="form1">
<input type="radio" name=button1 value=1>Box 1
<br><br>
<input type="button" value="Get Button Value"
onClick='alert("The button value is: " + document.form1.button1.value)'>
</form>
</body>
</html>
|
Read now
Unlock full access