Fork on GitHub

Demo: HTML5 Polyfill (Firefox)

right click me

Example code

Example HTML

<menu id="html5firefox8" type="context" >
  <menuitem label="rotate" onclick="alert('rotate')" hint="I'm a hint"></menuitem>
  <menuitem label="resize" onclick="alert('resize')"></menuitem>
  <menuitem label="disabled" onclick="alert('disabled')" disabled></menuitem>
  <menu label="share">
    <menuitem label="twitter" onclick="alert('twitter')"></menuitem>
    <menuitem label="facebook" onclick="alert('facebook')"></menuitem>
    <hr>
    <menuitem type="checkbox" label="(checkbox) yes or no?" 
        onclick="alert('checkbox: ' + (this.checked ? 'yep!' : 'nope'))"></menuitem>
    <hr>
    <menuitem type="radio" label="(radio) yes" radiogroup="alpha" checked 
        onclick="alert('radio: yes')"></menuitem>
    <menuitem type="radio" label="(radio) no" radiogroup="alpha" 
        onclick="alert('radio: no')"></menuitem>
  </menu>
</menu>