开发者

Refresh Parent Window from child window in IE8

I create a link with window.open, in new opened window i add a button for close window. I want when my window is close then parent window will refresh, so i use this script :

window.opener.location.href="https://qa.bloom.com/products/customer/account/profile/"; window.close();

In my application parent window use secure server like as https://examples.com but child window not use secure server.

This is working in ff开发者_如何学JAVA and but in IE 8 it's not working. Why is IE8 opening a new window instead of just refreshing the existing one?

Please give your suggestion.

Thanks


Try following code:

window.opener.location = self;
window.opener.location.reload();
window.close();

It works great in my IE v8.0

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜