Closing a Thickbox

Thickbox is this great Javascript framework that helps you showing pictures or having a iframe clearly visible on your website.

For example it can be used to create a disclaimer to be displayed when entering a website.

In order to redirect your visitor to an external website if he doesn’t comply with the disclaimer requirement, or to just give access to your website, you need to close the thickbox.


<h2><a href="#" onclick="self.parent.tb_remove();self.parent.location=''">I do <u>not</u> agree</a></h2>

<h2><a href="#" onclick="self.parent.tb_remove();self.parent.location='/'">I agree</a></h2>

Leave a Reply

Your email address will not be published.