80952f29b0
This is a follow up to #1. The onclick event is triggered by different mouse buttons across browsers: Firefox - all mouse buttons trigger document.onclick (https://bugzilla.mozilla.org/show_bug.cgi?id=430310) - only left mouse button triggers document.body.onclick Internet Explorer - only left mouse button and without any modifier key triggers document.onclick Chrome - left & middle mouse button trigger document.onclick Safari - left mouse button triggers document.onclick - middle click via mac os? By switching to the onmouseup event this can be unified for all mentioned browsers to: - (CTRL+) left click triggers event - middle click triggers event - right click does nothing |
||
---|---|---|
.. | ||
css | ||
img | ||
js |