Refresh parent window after closing thick window window

I am using Thickbox 3.1 for the login form using the iframe version.

I want to close the iframe window (child) and then update the parent window.

This closes the iframe, but I need to somehow configure it to update the parent window

<a href="#" onclick="self.parent.tb_remove();">Close</a>

Any help is appreciated.

+3
source share
4 answers

This should do it:

<a href="#" onclick="self.parent.tb_remove(); window.location.reload()">Close</a>

Edit: Perhaps this should be:

self.parent.location.reload()

?

+8
source

try

<a href="#" onClick="parent.location.reload(1)">Close</a>

worked for me

+3
source

:

self.parent.location = "page_to_reload";
0

, , , . (MySQL), -.

: SetTimeout (() {parent.location.reload(1)}, 1000)

This modification is also used in the .js file: http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html

0
source

Source: https://habr.com/ru/post/1739010/


All Articles