Menu

Want to work with us? We're on the lookout for a talented Digital Project Manager.

We're hiring

Adding a close button to PrettyPhoto

Web Bureau


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!

Grow your businessStart a project with us today.