日期:2014-05-16  浏览次数:20320 次

选中相应的单选按钮弹出相应的页面javascript代码怎么写?
假如有一个单选按钮:
我一选中它之后就会立马弹出一个页面怎么做?

------解决方案--------------------
<input type="radio" name="ra" checked="checked" onclick="window.open('http://www.baidu.com')">ss
<input type="radio" name="ra" onclick="window.open('http://www.google.cn.hk')">bb

------解决方案--------------------
+
探讨

纯前台代码实现,弹窗可能被阻止
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<script type="text/javascript">
function evFun()
{
window.open('tes……