<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<link rel="stylesheet" href="default.css" type="text/css">
<SCRIPT Language="JavaScript">
<!--
function startupProcess()
{
var waitLogin = window.open("","waitLogin","menubar=no,toolbar=no,location=no,directories=no,resizable=no,status=yes,width=300,height=50,left=0px,top=0px");
window.opener='meizz';
window.close();
waitLogin.document.open();
waitLogin.document.writeln( '<scrip'+'t>window.close()</'+'script>'); 
}  //--> 
 </script>
</head>
<body onLoad="startupProcess();">
</SCRIPT>
</head><p>是&#36825;&#26679;的,打&#24320;htm文件,在onload中&#35843;用了一个函数,生成了一个新的窗口,然后,&#20851;&#38381;本窗口,我的方法如下,我的&#38382;&#39064;是,如何不出&#29616;&#20851;&#38381;提示?   
代&#30721;如下:
</html>

解决方案 »

  1.   

    <SCRIPT Language="JavaScript">
    <!--
    function startupProcess()
    {
    var waitLogin = window.open("","waitLogin","menubar=no,toolbar=no,location=no,directories=no,resizable=no,status=yes,width=300,height=50,left=0px,top=0px");
    window.opener='meizz';
    waitLogin.document.open();
    waitLogin.document.writeln( '<html>' );
    waitLogin.document.writeln( '<head>' );
    waitLogin.document.writeln( '<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">' );
    waitLogin.document.writeln( '<title>xxxxxxxxx</title>' );
    waitLogin.document.writeln( '<link rel="stylesheet" href="default.css">' );
    waitLogin.document.writeln( '</head>' );
    waitLogin.document.writeln( '<body>' );
    waitLogin.document.writeln( 'aaaaaaaaaa' );
    // waitLogin.document.writeln( '<input type=button value="close" onclick="window.close()"' );你也可以点击这个按钮关闭
    waitLogin.document.writeln( '</body>' );
    waitLogin.document.writeln( '</html>' );
    waitLogin.document.writeln( '<script language="javascript1.2">' );
    waitLogin.document.writeln( 'window.close();' );
    waitLogin.document.writeln( '</script>' );
    }
    // -->
    </SCRIPT>