The contextmenu event fires when the user calls the context menu by right-clicking.
Its purpose is to allow web developers to disable the context menu. (Why do people want to do that? I have no idea.)
Test | IE 5.5 | IE 6 | IE 7 | IE8 | IE9 | IE10 pr2 | FF 7.0 Win | FF 6.1 Mac | Saf 5.1 Win | Saf 5.1 Mac | Chrome 14 Win | Chrome 13 Mac | Opera 11.51 Win | Opera 11.51 Mac |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
On the window
|
No | Yes | Yes | Yes | Yes | Yes | ||||||||
Is the contexmenu event available on the window? |
||||||||||||||
On the document
|
Yes | Buggy | Yes | Yes | Yes | Yes | Yes | |||||||
Is the contexmenu event available on the document?
|
||||||||||||||
On any element
|
Yes | Buggy | Yes | Yes | Yes | Yes | Yes | |||||||
Is the contexmenu event available on any element?
|
||||||||||||||
Event bubbling
The event should bubble. |
Yes | Yes | Yes | Yes | Yes | |||||||||
Cancel bubble
|
Yes | Yes | Yes | Yes | Yes | |||||||||
Prevent default
The point of this event: can you suppress the context menu? Should be possible. |
Yes | Buggy | Yes | Yes | Yes | Yes | Yes | |||||||
|
||||||||||||||
Test | IE 5.5 | IE 6 | IE 7 | IE8 | IE9 | IE10 pr2 | FF 7.0 Win | FF 6.1 Mac | Saf 5.1 Win | Saf 5.1 Mac | Chrome 14 Win | Chrome 13 Mac | Opera 11.51 Win | Opera 11.51 Mac |