<input type=button onclick=window.open("reg.asp","","width=500,height=500") value=注册>

解决方案 »

  1.   

    window.showModalDialog("reg.asp","","dialogHeight: 142px; dialogWidth: 217px; center: Yes; help: No; resizable: No; status: no;");
      

  2.   

    <input type=button onclick=window.open("reg.html","","width=500,height=500") value=注册>
      

  3.   

    模式對話框: window.showModalDialog, window.showModalDialogEx
    打開新窗口: window.open
    A連接開新窗口: <a target='blank' href='...'>test</a>