<input type=radio name=aa onclick="document.location.href="指定网页.htm"">

解决方案 »

  1.   


    网才里面的引号打错了:<input type=radio name=aa onclick="document.location.href='指定网页1.htm'">
    <input type=radio name=aa onclick="document.location.href='指定网页2.htm'">
      

  2.   

    我不是在点的时候就跳转
    而是submit的时候跳转
    写一个javascript判断那个单选被选中不知道怎么写
    先谢谢了
      

  3.   

    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>测试页</title>
    </head><body>
    <form name=form1>
    <input type=radio value="http://www.163.com" name=t1>163
     <input type=radio value="http://www.sina.com.cn" name=t1>sina
    <input value="确定" type=button onclick="return check()">
    </form>
    <script language="javascript">
    <!--
    function check()
    {
     n="";
    var  t1=form1.t1.length;
    if(!t1)
     {
      if(form1.t1.checked==true)
       {n=form1.t1.value;}   
     }
     else
     {
     for (var k=0;k<t1;k++)
       {
        if(form1.t1[k].checked==true)
        {n=form1.t1[k].value;          
        break;}
       }
       
     }
     if(n=="")
      {alert("请先选择");}
      else
      {
      if(confirm("你选择了:"+n+"\n确认要跳到选择页吗?"))
      location.href=n;
      
      } 
    }
    //-->
    </script></body></html>