Events jQuery event.stopPropagation未在<;a>;

Events jQuery event.stopPropagation未在<;a>;,events,jquery,Events,Jquery,我有以下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; })

我有以下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;
});
id为“ge display”的元素是标准链接:

<a href="/googleearth/ge-display.php" id="ge-display" target="_blank">Load Google Earth Plugin (in a new window)</a>

问题是-当我去掉'return false;'单击事件处理程序中的第行,javascript弹出窗口打开,然后另一个浏览器窗口打开-我以为stopPropagation()会阻止链接自己的单击处理程序

我还尝试了stopImmediatePropagation()-但我仍然需要返回false以停止链接的默认行为。

调用将阻止其他Javascript事件处理程序处理该事件。它不会阻止浏览器的默认操作

你需要打电话