Mozilla/mozilla/layout/html/tests/formctls/base/radio_onchange.html
bernd.mielke%snafu.de fb5d51bc1b adding some more testcases (from jkeiser) the formctl regression testcases not part of the build
git-svn-id: svn://10.0.0.236/trunk@116274 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-09 19:01:12 +00:00

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>