views:

719

answers:

3

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.

A: 

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

?

RichieHindle
it closed the thickbox window, but did not refresh the parent page.
Brad
A: 

How about:

self.parent.location = "page_to_reload";
Justin Ethier
A: 

try

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

worked for me

John