12 January 2011 by Web Bureau
There might be other better solutions for this but this works for me when trying to close a prettyPhoto iframe.
To redirect the user back to the homepage you can use this:
onclick="window.top.location = '/';"
To redirect the user back to the page behind the lightbox:
onclick="window.top.location = window.parent.location;"
If you have a better solution I would be interested to hear!