<html><head><title>无标题文档2</title></head><body background="bg.jpg"><script language="javascript">function fun(){alert(document.ThisForm.age.value);}function fun1(){if (document.ThisForm.study(0).checked==true)alert("0");elsealert("1");}</script><form name="ThisForm"><input type="text" name="age"><input type="button" name="input" value="输出" onClick="fun()"> <br><input type=radio name="study" value="0" > time: 0<br><input type=radio name="study" value="1" > time: 1<br><input type="button" value="Go" name="press" onclick="fun1()"> <br></form></body></html>

评论