Posted on 2009-09-17 08:59
S.l.e!ep.¢% 阅读(1865)
评论(0) 编辑 收藏 引用 所属分类:
HTML
html单选按钮的使用
2009-08-04 10:21
<html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>新建网页 1</title> <script> function aa() { for(var i=0;i<document.forms[0].R1.length;i++) { if (document.forms[0].R1[i].checked) document.forms[0].R1[i].checked=false; } } </script> </head> <body> <form method="POST" action="--WEBBOT-SELF--"> <input type="radio" value="你好啊" name="R1">中国<p> <input type="radio" name="R1" value="V1">日本</p> <p><input type="radio" name="R1" value="V2">美国</p> <p><input type="button" value="按钮" name="B1" onclick="aa()"></p> </p> </form> </body> </html>
|