Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

refresh parent window after closing thickbox window

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

I want to close the iframe (child) window, then refresh the parent window.

This closes the iframe window, but I need to somehow set it to refresh the parent window

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

Any help is appreciated.

like image 829
Brad Avatar asked Feb 04 '26 18:02

Brad


1 Answers

This should do it:

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

Edit: Maybe that should be:

self.parent.location.reload()

?

like image 137
RichieHindle Avatar answered Feb 06 '26 08:02

RichieHindle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!