Fork me on GitHub

jQuery contextMenu

Demo: HTML5 Polyfill

Example Code: HTML5 Polyfill


$(function(){
    $.contextMenu('html5');
});
    

Example HTML: HTML5 Polyfill

<div class="box menu-2" contextmenu="html5polyfill">
    <strong>right click me</strong>
</div>
<menu id="html5polyfill" type="context" style="display:none" class="showcase">
  <command label="rotate" onclick="alert('rotate')" icon="images/cut.png"></command>
  <command label="resize" onclick="alert('resize')" icon="images/door.png"></command>
  <menu label="share">
    <command label="twitter" onclick="alert('twitter')" icon="images/page_white_copy.png"></command>
    <hr>
    <command label="facebook" onclick="alert('facebook')" icon="images/page_white_edit.png"></command>
    <hr>
    <label>foo bar<input type="text" name="foo"></label>
  </menu>
</menu>

jQuery Context Menu Demo Gallery