Thickbox, link and close popup

Hello All,

just wanted to know if it was possible to specify a parent location
in the link_to tag. Actually I have a link on a thickbox popup and
would like to close the popup and redirect to the appropriate page on
onClick action on the link. Does anyone know how to implement this ?