Close prettyPhoto window from an iframe

Around the forums has been discussed on how to close prettyPhoto modal from within an iframe. I’ve tried many of solutions posted there without success.
Here’s one solutions on how to do it. To close prettyPhoto from an iframe just call the following:

<script type=”text/javascript”>
parent.eval(‘$.prettyPhoto.close()’);
</script>

Leave a Comment