is the originalTarget, so coordinate-based stuff seems like the only way const sx = event.screenX, sy = event.screenY; const box = img.boxObject; const x = box.screenX, y = box.screenY; if(sx < x || sy < y) return; // paranoia const x2 = x + box.width, y2 = y + box.height; if(sx > x2 || sy > y2) return; // now close the tab event.stopPropagation(); // don't want a tab switch to happen too gBrowser.removeTab(tab); // gBrowser is the , per browser.js }; tab.addEventListener("click", handler, true); ]]> lspacing="0">
Terms of Use | Privacy Statement | Home | About Us | Services | Contact Us
© 2006 Analytix Data Services, Inc. - All rights reserved