window.location.href = "a.asp"

解决方案 »

  1.   

    楼主这??
    <a name="add"></a>AAAAAAAA
    <a name="edit"></a>BBBBBBB
    <a name="delete"></a>CCCCCCCCCC试一下,这是不是你想要的.
    <html>
    <script >
    function go()
    {
       if (Form1.radio[0].checked)
          window.location.href="add.htm"
        else if (Form1.radio[1].checked)
           window.location.href="edit.htm"
        else 
            window.location.href="delete.htm"
    }
    </script>
    <body>
    <form name=Form1>
    <input type=radio name="radio" CHECKED>AAAAAAAA
    <input type=radio name="radio">BBBBBBB
    <input type=radio name="radio">CCCCCCCCCC
    <input type="button" value="跳转" name="cmdok" onclick="go();">
    </form>
    </body>
    <html>
      

  2.   

    <select onchange="tar.location=options[selectedIndex].value">
    <option value=http://www.blueidea.com>blueidea
    <option value=http://www.sina.com.cn>sina
    <option value=http://piggydesign.yeah.net>mysite
    </select>
    <iframe name=tar></iframe>
      

  3.   

    document.location.href = "index.asp"