<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>是这样的,打开htm文件,在onload中调用了一个函数,生成了一个新的窗口,然后,关闭本窗口,我的方法如下,我的问题是,如何不出现关闭提示?
代码如下:
</html>
<!--
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>