In my popup page, I have a link with properties: id="myLink" href="http://..." target="_blank"
when user click the link, it should open the link as default event and then close the popup window.
I have following jquery code in the popup page to close popup window.
$('#myLink').click(function() {
ClosePopupOverlay();
});
Now it works fine in IE, but in firefox and Chrome, it just close the popup window, doesn't open the link at all.
Can we not prevent default event and add custom code in jquery in all browsers? Any ideas on how to fix this issue?
Thanks a lot for any help!