Closed
Bug 98191
Opened 23 years ago
Closed 23 years ago
Cannot prevent context menu by calling preventDefault()/stopPropagation() on right-click event
Categories
(Core :: DOM: Events, defect)
Tracking
()
People
(Reporter: hjtoi-bugzilla, Assigned: joki)
Details
From an email:
>Right click.
>
> When I detect a right click, I call
>
> e.preventDefault();
> e.stopPropagation();
>
> to suppress the context menu. It doesn't work, the context menu
still
> appears.
Comment 1•23 years ago
|
||
You should be hooking into oncontextmenu instead of onclick
*** This bug has been marked as a duplicate of 72084 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•