admin管理员组

文章数量:1023758

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

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

本文标签: javascriptRefresh Parent Window from child window in IE8Stack Overflow