prettyPhoto is a jQuery based lightbox clone. Not only does it support images, it also add support for videos, flash, YouTube, iFrames. It’s a full blown media lightbox. The setup is easy and quick, plus the script is compatible in every major browser.
Just wanted to pass along a solution I found when trying to prevent prettyPhoto iframes from redirecting onto the iframe source page in some webkit browsers (chrome and safari):
<a class="button large red" href="http://www.thumbtack.com/or/mcminnville/general-contractors/remodeling-carpentry-handyman-services?iframe=true&width=90%&height=90%" rel="prettyPhoto">Centerline Construction</a>
Note that the sandbox option only works in safari and webkit. However, those were the only browsers that were auto-redirecting the prettyPhoto URL. Also note that not all webpages will auto-redirect. example.com, for example (I know, I know...) works just fine as a prettyPhoto iframe using the vanilla code.
Just wanted to pass along a solution I found when trying to prevent prettyPhoto iframes from redirecting onto the iframe source page in some webkit browsers (chrome and safari):
Original code:
Fix (uses the html5 iframe sandbox):
Here's my html markup
Note that the sandbox option only works in safari and webkit. However, those were the only browsers that were auto-redirecting the prettyPhoto URL. Also note that not all webpages will auto-redirect. example.com, for example (I know, I know...) works just fine as a prettyPhoto iframe using the vanilla code.
Cheers and thanks for an awesome plugin!