Want to work with us? We're on the lookout for digital experts.

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=" = '/';"

To redirect the user back to the page behind the lightbox:

onclick=" = window.parent.location;"

If you have a better solution I would be interested to hear!

Grow your businessStart a project with us today.

This site uses essential cookies for parts of the site to operate and have already been set. Find out more about how we use cookies and how you may delete them. You may delete cookies, but parts of the site will not work.