Can Someone Explain What The Contextmenu Attribute In Html5 Does?
Solution 1:
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.
Solution 2:
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.
Solution 3:
The context menu appears when the user right-clicks on an interface element. The contextmenu
attribute is the ID of a <menu>
element to open when the user right clicks on the element with this attribute.
Solution 4:
Quoting for you to understand easily:
The contextmenu attribute allows you to display a menu without taking up valuable UI space for the menu. It is a menu which fires on events, such as mouseup or keyup providing a bubble menu which provides options and actions based on those selections.
Source:http://net.tutsplus.com/tutorials/html-css-techniques/html5-globals-and-you/
See official link for more information:
Solution 5:
The contextmenu should be used on an input field to specify which menu element is for the field. The menus look sort of like the right click menu or a dropdown box however they are not implemented in any browser yet so you should avoid using them.
This may help clear things up: http://dev.w3.org/html5/spec-author-view/interactive-elements.html
Post a Comment for "Can Someone Explain What The Contextmenu Attribute In Html5 Does?"