Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>One option is to <a href="http://www.sitepoint.com/building-custom-right-click-context-menu-javascript/" rel="nofollow noreferrer">replace the context menu</a> with your own JavaScript triggered equivalent.</p> <p>Firefox implemented the <a href="https://www.w3.org/wiki/HTML/Elements/menu" rel="nofollow noreferrer"><code>menu</code> element</a> where you can add to the existing context menu. It was also implemented in Chrome behind a flag. Unfortunately this feature has been <a href="https://github.com/whatwg/html/pull/2742" rel="nofollow noreferrer">removed from the W3C standard</a> due to a lack of implementation interest.</p> <pre><code>&lt;menu type="context" id="mymenu"&gt; &lt;menuitem label="Refresh Post" onclick="window.location.reload();" icon="/images/refresh-icon.png"&gt;&lt;/menuitem&gt; &lt;menuitem label="Skip to Comments" onclick="window.location='#comments';" icon="/images/comment_icon.gif"&gt;&lt;/menuitem&gt; &lt;menu label="Share on..." icon="/images/share_icon.gif"&gt; &lt;menuitem label="Twitter" icon="/images/twitter_icon.gif" onclick="goTo('//twitter.com/intent/tweet?text=' + document.title + ': ' + window.location.href);"&gt;&lt;/menuitem&gt; &lt;menuitem label="Facebook" icon="/images/facebook_icon16x16.gif" onclick="goTo('//facebook.com/sharer/sharer.php?u=' + window.location.href);"&gt;&lt;/menuitem&gt; &lt;/menu&gt; &lt;/menu&gt; </code></pre> <p>To make an element use this context menu, add the <code>contextmenu="mymenu"</code> attribute to it. You can see here that <code>mymenu</code> matches the <code>id</code> attribute of the <code>menu</code> element.</p> <p><a href="https://davidwalsh.name/html5-context-menu" rel="nofollow noreferrer">Source</a></p> <p><a href="https://davidwalsh.name/demo/html5-context-menu.php" rel="nofollow noreferrer">Demo</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload