M
Michael Schuerig
I'm trying to use the right mouse button to open a popup on a specific
element. The popup is triggered by a mouseup event. However, on
mousedown the standard context menu opens. To get around this, I listen
to that event, too, and stop it (preventDefault, stopPropagation). That
works on Konqueror (and presumably other KHTML-based browsers), but not
on Firefox. The latter still opens its context menu.
My search has turned up literally hundreds of blocker scripts for the
right mouse button. The few I've tested don't appear to work as
advertised with Firefox.
Now, my intention isn't to block my users from doing anything, rather
I'd like to offer them a form of interaction they're used to. In this
case the ability to access the settings of an object by right-clicking
it. Is it possible to make this work across browsers?
Michael
element. The popup is triggered by a mouseup event. However, on
mousedown the standard context menu opens. To get around this, I listen
to that event, too, and stop it (preventDefault, stopPropagation). That
works on Konqueror (and presumably other KHTML-based browsers), but not
on Firefox. The latter still opens its context menu.
My search has turned up literally hundreds of blocker scripts for the
right mouse button. The few I've tested don't appear to work as
advertised with Firefox.
Now, my intention isn't to block my users from doing anything, rather
I'd like to offer them a form of interaction they're used to. In this
case the ability to access the settings of an object by right-clicking
it. Is it possible to make this work across browsers?
Michael