iframe - Fancybox won't work in chrome -


i trying call fancybox iframe iframe parent. works fine in firefox, won't work in google chrome. using: fancybox v2.1.5

<head> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript" src="../fancybox/source/jquery.fancybox.pack.js"></script>    <script> $(document).ready(function() {     $('.video').click(function(e){         e.preventdefault();         parent.parent.$.fancybox({             href: this.href,             width: 560,             height: 315,             type: 'iframe',             helpers: {                 overlay: {                 opacity: 0.3                 }             }          });      });      });  </script> </head> 

and how trying call parent:

<a href="javascript:parent.$.fancybox.open({href : 'http://www.youtube.com/embed/3l8mwu0ijmi?autoplay=1', type: 'iframe'});" class="video">open youtube video</a> 

thank you!


Comments