点击单选框就直接激活链接的实现代码
出处:
本站整理 作者:佚名 日期:2007-5-9 0:05:41 人气: [
大
中 小]
以下是引用片段:
<html> <head> <!--第一步:把如下代码加入到“head”区域中--> <script> function go(HrefName) { window.location.href = HrefName; } </script> </head> <body> <!--第二步:把如下代码加入到“body”区域中--> <form name="form"> <div align="center"> <input type="radio" name="HrefName" onClick="go('http://www.chinahtml.com);"> 选中即激发了超链接<br> <input type="radio" name="HrefName" onClick="go('http://www.chinahtml.com');"> 选中即激发了超链接<br> <input type="radio" name="HrefName" onClick="go('http://www.chinahtml.com');"> 选中即激发了超链接<br> </div> </form> </body> </html> |
相关文章
相关软件