window.location IE中的问题

Die*_*oP. 1 javascript internet-explorer

我有这个简单的代码在每个浏览器中工作正常,但不在IE(每个版本).

 window.setTimeout('window.location = \"http://www.domain/modules/yobilab/copyright/classes/GO_overview.php?refNumb=".$RefNumb."\"', 3000);
            return false;
Run Code Online (Sandbox Code Playgroud)

在每个浏览器中,它将转到右侧链接

在IE中,它还包括它来自的链接,因此它将变成这样的东西:

http://www.domain/PAGEWHEREIWAS/modules/yobilab/copyright/classes/GO_overview.php?refNumb=something
Run Code Online (Sandbox Code Playgroud)

为什么这样做?

它显然会产生一个NOT FOUND错误.

Ted*_*ddy 11

尝试使用document.location而不是window.location.