With the HTML5 in effect, context menus allow you to add element to the contextual menu. The menu which appears the time when the user right click somewhere on your page. The following snippet below will give you an idea that what Context Menus with HTML5 actually is.
1 2 3 4 5 6 7 8 9 | <section contextmenu="mymenu"> <p>Yes, this section right here</p> </section> <menu type="context" id="mymenu"> <menuitem label="Please do not steal our images" icon="img/forbidden.png"></menuitem> <menu label="Social Networks"> <menuitem label="Share on Facebook" onclick="window.location.href = 'http://facebook.com/sharer/sharer.php?u=' + window.location.href;"> </menuitem> </menu> </menu> |
Snippet Source/Credit: Speckyboy