vhost-audit/contrib/contextmenu/documentation/demo/html5-import.md

1.5 KiB

currentMenu
html5-import

Demo: Importing HTML5 <menu type="context">

jQuery.contextMenu allows you to import HTML5's <menu> structures to use in older browsers.

right click me

Example code

Example HTML

<menu id="html5menu" style="display:none" class="showcase">
  <command label="rotate" icon="edit" onclick="alert('rotate')">
  <command label="resize" onclick="alert('resize')"> 
    <command label="twitter" onclick="alert('twitter')">
    <hr> 
    <command label="facebook" onclick="alert('facebook')">
  </menu>
</menu>