refresh parent window after closing thickbox window

Brad picture Brad · Mar 29, 2010 · Viewed 22.4k times · Source

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.

Answer

RichieHindle picture RichieHindle · Mar 29, 2010

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()

?