-2
我想要做的是在页面加载时,将 自动关闭窗口,然后打开一个新的窗口关闭窗口并打开一个新的窗口
这里是代码我使用
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv="prahma" content="no-cache">
<title>Auto Close and Open New window</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
var url = "step5.php"
window.open(url,"","");
window.open('', '_self', '');
window.close();
</script>
</head>
<body onload="closeIt();">
</body>
</html>
窗户关闭但没有打开新的窗户。