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)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 72084

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.
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
v
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.