Closed Bug 156137 Opened 19 years ago Closed 18 years ago
Click on a link doesn't fire on middle click
Originally reopened bug 63950, this bug is being refiled per email@example.com. Note that it is almost the opposite of bug 151142 and is dependent on bug 70501. onClick doesn't fire when a middle click is issued to open a tab in a new window. This behavior was noted on both Linux and Windows release versions of Mozilla 1.0.
Sorry, this is done on purpose -- a lot of sites assume that "onclick" is only fired for the left button (since that is what IE and NS4 do). See bug 71705 I feel that this must (regretfully) be wontfixed -- it would break a large number of sites and make browsing suck a lot more if we implemented this...
Middle-clicking on the body element fires onclick, but middle-clicking on a link has a special meaning and so it does not fire onclick. Btw, what are you trying to do in the onclick handler for the link?
Summary: onClick doesn't fire on middle click → onClick on a link doesn't fire on middle click
Is there a meta bug for middle-click? Or are all these middle-click issues (including this one) going to sit in an undefined state until someone gives up and Does It Their Way?
I vote for Wontfix as well. We should get this of the UNCONF radar, atleast. Boris ?
It's up to the module owner, imo.
*** Bug 159711 has been marked as a duplicate of this bug. ***
*** Bug 164042 has been marked as a duplicate of this bug. ***
This may have been fixed without further comment; a middle-click on the link in the attachment is now checking the box, and thus it looks like onClick is firing on middle-click; at least in 1.3 alpha (BID:2002121222) Someone else care to confirm and/or mark CLOSED/FIXED?
That was a regression in 1.3a. In 1.3b it will not work again. I'm resolving this wontfix. We got a large number of reports of _user_ (not developer) problems reported with 1.3a because of the regression in it...
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
I have to admit I'm disappointed with this decision. Still, a discussion about what middle-click is supposed to do when would be nice. Or maybe the target="_blank" to new tab pref (bug 103843 comment 43 or perhaps bug 105547) would help...?
Sure. But this is a bug on DOM events. We can't usefully fire onclick on non-left-click in the current state of the web.... UI suggestions for Mozilla should live in bugs in the UI component. ;)
*** Bug 290231 has been marked as a duplicate of this bug. ***
*** Bug 309771 has been marked as a duplicate of this bug. ***
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.