UK [ˈmenju:] US [ˈmɛnju, ˈmenju]
n.Menu; dish, dish
Plural: menus
html menuitem tag syntax
Function:Define commands/menu items that users can call from the pop-up menu.
Note: Firefox 8.0 and later versions support the <menuitem> tag.
Note: <menuitem> tag is a new tag in HTML5.
html menuitem tag example
<!DOCTYPE html> <html> <body> <div style="background:yellow;border:1px solid #cccccc;padding: 10px;" contextmenu="mymenu"> <p>请在框中右键点击,就可以看到快捷菜单!</p> <menu type="context" id="mymenu"> <menuitem label="Refresh" onclick="window.location.reload();" icon="ico_reload.png"></menuitem> <menu label="Share on..."> <menuitem label="Twitter" icon="ico_twitter.png" onclick="window.open('//twitter.com/intent/tweet?text=' + window.location.href);"></menuitem> <menuitem label="Facebook" icon="ico_facebook.png" onclick="window.open('//facebook.com/sharer/sharer.php?u=' + window.location.href);"></menuitem> </menu> <menuitem label="Email This Page" onclick="window.location='mailto:?body='+window.location.href;"></menuitem> </menu> </div> <p>本例只在 Firefox 中有效!</p> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance