window.open("XXX.html","window", "top=300,left=300,menubar=no,width=600,height=200,resizable=yes,location=no,status=no");

解决方案 »

  1.   

    location.href就是替换当前窗口的地址!要想打开新窗口就不能用location.href=
      

  2.   

    <input type="button" value="opennewindow" onclick="window.open('register.html');" />
      

  3.   

    <input type="button" name="Submit" value="注册" 
    onClick="window.open('register.html','_blank')">
      

  4.   

    真是奇怪啊,4楼和5楼的都可以,不用_blank也可以1楼的后面那一长串都不知道怎么用,嘿嘿唉,问题又解决了!
      

  5.   

    你查查window.open的参数说明就知道1楼的那些是干什么用的了