Web dev
Web dev

Reputation: 11

window.opener.location.href not working in IE 6

window.opener.location.href = newUrl not working in IE 6

I want to refresh my parent window from popup window to some different URL, But above javascript code is not working.

Please let me know any solution or work around.

Thanks.

Upvotes: 0

Views: 1072

Answers (2)

mplungjan
mplungjan

Reputation: 178094

Did you load another page into the popup before you executed the script, if so, you need to name the parent window and do window.open(url,"parentWindowName")

Upvotes: 0

Jamie Dixon
Jamie Dixon

Reputation: 53991

As I recall you can simply use window.opener.location = newUrl in IE6

Upvotes: 1

Related Questions