refresh parent window after closing thickbox window

22,454

Solution 1

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

?

Solution 2

try

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

worked for me

Share:
22,454
agucho
Author by

agucho

Web Application Developer, using PHP, CodeIgniter, Laravel, jQuery, html, css, js, Twitter Bootstrap, LESS, MySQL, rsync, git, ExpressionEngine add-on developer

Updated on July 05, 2022

Comments

  • agucho
    agucho almost 2 years

    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.

  • agucho
    agucho about 14 years
    it closed the thickbox window, but did not refresh the parent page.