Fork on GitHub

Demo: HTML5 Polyfill

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

right click me

Example code

Example HTML

<menu id="html5polyfill" type="context" style="display:none">  
    <command label="rotate" onclick="alert('rotate')" icon="images/cut.png">
    <command label="resize" onclick="alert('resize')" icon="images/door.png">
    <menu label="share">
        <command label="twitter" onclick="alert('twitter')" icon="images/page_white_copy.png">
        <hr>
        <command label="facebook" onclick="alert('facebook')" icon="images/page_white_edit.png">
        <hr>
        <label>foo bar<input type="text" name="foo"></label>
    </menu>
</menu>