gecko/layout/html/tests/formctls/base/radio_onchange.html

22 lines
729 B
HTML

<html>
<head>
<title>Radio Button Test 3 (onChange)</title>
<script SRC="radio.js"></SCRIPT>
</head>
<body>
<form NAME=mainform>
<input TYPE=reset> <input TYPE=submit>
<fieldset>
<legend>onChange test</legend>
<input TYPE=radio NAME=a VALUE=1 onChange="alert('1 changed')">
<input TYPE=radio NAME=a VALUE=2 onChange="alert('2 changed')">
<input TYPE=radio NAME=a VALUE=3 onChange="alert('3 changed')">
<br>
<input TYPE=button VALUE="Show all checked" onClick="alert(getRadioVal(document.mainform.a))">
<input TYPE=button VALUE="Set .checked on #3" onClick="document.mainform.a[2].checked = true">
<input TYPE=button VALUE="Set all .checked" onClick="setAllChecked(document.mainform.a, true)">
</fieldset>
</form>
</body>
</html>