javascript - Exit or close a popup iframe on click -


i created popup iframe call pop.html in pop.html, have 2 button, enter , exit when user click button exit , want unload popup , when user click enter, exit popup , go anchor link. problem window.unload not working, idea? thanks

 <a onclick="window.onbeforeunload = null;" href="contest" >enter</a>  <a onclick="window.onbeforeunload = null;" >close popup</a> 

note: button located inside 'popup iframe' main site index.html , button located in.pop.html popup iframe content

already found solution

<a href="javascript:parent.jquery.fancybox2.close();"><img src="myclosebutton.png" alt="close fancybox" /></a> 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -