The Most Secure Cross Browser Testing Platform since 2012


Cross-Browser Context Menu

BLOG / Web Development

Cross-Browser Context Menu

Context Menu is the method of defining a toolbar menu, a context menu or a list of (interactive) options using the menu element.

Browser Support

Sadly this feature is currently not supported by any browser.

Code Example

You can use Context Menu like this:

<menu type="context" id="mymenu">
  <menuitem label="Refresh" onclick="window.location.reload();" icon="ico_reload.png">
  <menu label="Share on...">
    <menuitem label="Twitter" icon="ico_twitter.png" onclick="'//'+window.location.href);">
    <menuitem label="Facebook" icon="ico_facebook.png" onclick="'//'+window.location.href);">
  <menuitem label="Email This Page" onclick="window.location='mailto:?body='+window.location.href;"></menuitem>

More Information

More information can be found here.