Tim Habersack

Where I put my things..

HTML5 contextmenu is rad.

Mar 2nd 2016

WHat? What?

https://www.gandi.net

Right click on their logo, in Firefox.

View when you right click the logo

It uses the contextmenu element. I've never seen it in the wild before.

<header contextmenu="logomenu" id="header" class="logged" data-contextmenu="Download our logo" lang="en">
    <h1><a href="/" title="\o/ Gandi">Gandi</a></h1>
    <p id="baseline"><a href="/no-bullshit" title="No Bullshit?">no bullshit ™</a></p>
    <menu type="context" id="logomenu">
        <menuitem label="Download our logo" icon="/favicon.ico" onclick="window.location = '/press#logo'"></menuitem>
    </menu>                
</header>

SO COOL. For web app stuff, that could be SUPER COOL.