javascript - Refresh Parent Window from child window in IE8 - Stack Overflow

I create a link with window.open, in new opened window i add a button for close window. I want when my

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="/"; window.close();

In my application parent window use secure server like as but child window not use secure server.

This is working in ff 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

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./products/customer/account/profile/"; window.close();

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

This is working in ff 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

Share Improve this question edited Sep 29, 2010 at 14:06 Seema asked Sep 29, 2010 at 10:06 SeemaSeema 7873 gold badges14 silver badges25 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 3

Try following code:

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

It works great in my IE v8.0

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745566065a4633401.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信