parent.frame[name].location.href="a.asp"

解决方案 »

  1.   

    <input type="button" name="button2" value="注册" onclick="window.open('http://www.google.com')">
      

  2.   

    <input type="button" name="button2" value="注册" onclick="window.open('http://www.google.com','_blank')">
      

  3.   

    <a href="你的新网页.htm" target="_blank">this is a test</a>加上target="_blank"属性就可以了,不用javascript
      

  4.   

    总结一下:
    1 在脚本中要打开新窗口: window.open("mypage.html");
    2 让用户在页面链接中使用新窗口打开:<a href="你的新网页.htm" target="_blank">this is a test</a>