I have the following javascript:
$('#ge-display').click(function (event) {
window.open('/googleearth/ge-display.php','','scrollbars=yes,menubar=no,height=650,width=1000,resizable=yes,toolbar=yes,location=no,status=no');
event.stopPropagation();
return false;
});
an element with id 'ge-display' is a standard reference:
<a href="/googleearth/ge-display.php" id="ge-display" target="_blank">Load Google Earth Plugin (in a new window)</a>
The problem is when I take out "return false"; a line from the click event handler, a javascript popup window opens, and then another browser window opens - I thought stopPropagation () would prevent its own click handler?
I also tried stopImmediatePropagation () - but I still need to return false to stop the default link behavior.
source
share