The MenuItem object represents an HTML <menuitem> element.
The <menuitem> element is currently only supported in Firefox.
We can access a <menuitem> element via document.getElementById()
:
var x = document.getElementById("myMenuItem");
Create a MenuItem Object
We can create a <menuitem> element via the document.createElement()
method:
var x = document.createElement("MENUITEM");