2006-09-13

点击单选框就直接激活链接的实现代码

来源: 本站收集整理 作者:佚名 评论 0 条
  <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>
(本文仅表明作者个人观点,不代表本站及其管理员立场.) 推荐 收藏 投稿 打印 返回 关闭
上一篇:Html Css做圆角表格  
下一篇:分析总结一下<li>和<hr>的样式定义
    评论加载中…
 推荐文章
     

网站首页  -  网站地图 -   站长论坛  -  网站投稿  -    -  网站管理
Copyright © 2008 芜湖站长站 All Rights Reserved 皖ICP备07500611号