PDA

View Full Version : window.opener.location.reload() ERROR


EdScript
12-05-2002, 05:48 PM
Please help! I’m getting a runtime error “Permission denied” when executing the following line from a pop up window that I’m about to close but want to refresh the window that opened it first?

This is the line getting the error, is there another way to refresh the opener window or does anyone know why this error occurs in IE 5.5 ?

Thanks,
Ed

window.opener.location.reload()

wyattwebb
12-05-2002, 07:27 PM
I tried it in IE 6 and it works fine.... I don't have 5.5 laying around so... maybe upgrade?

Heres my code.

<SCRIPT>
function ReloadWin()
{
window.opener.location.reload()
}
function window.onunload()
{
ReloadWin();
}
</SCRIPT>

vegeta
12-05-2002, 09:06 PM
window.opener.location = window.opener.location;

dulatoag
12-05-2002, 09:10 PM
I've used self.opener.location.reload() with much success.

glenngv
12-09-2002, 06:41 AM
I suspect that the page in the opener is from another domain, thus the permission denied error.