javascript - Open a link from a Iframe(fancybox) in a new window -


i'm building europe map raphael script using fancybox popup when clicking on country, it's displaying iframe.

when clicking on link inside iframe new page opened inside iframe open link in new window.

here script raphael :

greek[state].click(function(){   $j.fancybox({    'showclosebutton': true,    'href'   : 'link.html',    'width'  : 500,    'height' : 350,    'type' : 'iframe'   }); }); 

the link.html file :

<a onclick="window.open(this.href,'','resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=400,height=500,left=350,top=250,status'); return false" href="http://www.test.com"><img src="test-simotas.jpg" width="447" height="314"/></a> 

i can't find solution.

do have idea?? in advance.

maybe work:

<a  onclick="window.open(this.['data-href'],   '','resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,   toolbar=no,fullscreen=no,dependent=no,width=400,height=500,left=350,   top=250,status'); return false" data-href="http://www.test.com"   href="javascript:return false;"> 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -