Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 contextmenu attribute question? [duplicate]

Tags:

html

can someone explain what the the contextmenu attribute does and if it can be used with all the HTML elements and can someone point me to some online demos/examples?

like image 603
HELP Avatar asked May 27 '26 12:05

HELP


2 Answers

The contextmenu attribute refers to the <menu> element the user agent should render when a context menu is requested by the user (e.g. using the right mouse button or the Menu/Hyper key on modern keyboards.

You can find an example here.

like image 195
Frédéric Hamidi Avatar answered May 30 '26 07:05

Frédéric Hamidi


You can see how it may look like in this demo: https://bug617528.bugzilla.mozilla.org/attachment.cgi?id=554309

At the time of writing only FireFox 8 supports it.

like image 41
Dmitry Pashkevich Avatar answered May 30 '26 08:05

Dmitry Pashkevich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!