-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>

窗口关闭但不打开新窗口。

4

1 回答 1

1

You must Open new window first then close the older one.

于 2012-09-22T02:42:32.253 回答