default.htm
----
<script>
window.open('login.htm','','menubar=no;toolbar=no;location=no;left='+(screen.availWidth-400)/2+';top='+(screen.availHeight-300)/2+';width=400;height=300;')
</script>
login.htm
--------
<form action='login.asp'>
<input type=text name=user>
<input type=password name=pass>
<br>
<input type=submit value='submit'>
<input type=button value='register'>
</form>

解决方案 »

  1.   

    default.htm
    ----
    <script>
    window.open('login.htm','','menubar=no;toolbar=no;location=no;left='+(screen.availWidth-400)/2+';top='+(screen.availHeight-300)/2+';width=400;height=300;')
    window.opener = null;
    window.close();
    </script>
      

  2.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head>
    <body>
    <script language="JavaScript">
    wleft=(screen.width-400)/2;
    wtop=(screen.height-300)/2;
    nwindow=window.open('login.htm','','fullscreen=yes,scrollbars=no')
    nwindow.resizeTo(400,300);
    nwindow.moveTo(wleft,wtop);window.opener = null;
    document.all.WebBrowser.ExecWB(45,1)
    </script><OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0 VIEWASTEXT></OBJECT>
    </body></noframes>
    </html>
      

  3.   

    这个,应该你自已想办法哟,
    不过,上面的代码,,: wsj(骆驼的好懂一些!
    我能看懂
    呵可呵