Fork on GitHub

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>