为什么以下的代码跳转的时候,是另打开新的窗口,而不是替换原来的,如何替换原来的....
<head>
<script language="javascript">
function redirect()
{
window.location.replace("./english/indexe.html");
}
</script>
</head>
<body Onload="redirect()">
</body>
<head>
<script language="javascript">
function redirect()
{
window.location.replace("./english/indexe.html");
}
</script>
</head>
<body Onload="redirect()">
</body>
window.open("./english/indexe.html","_self");可以,换成
window.location.reaload("./english/indexe.html");也可以