HTML DOM MenuItem Object
MenuItem Voorwerp
Die MenuItem-objek verteenwoordig 'n HTML <menuitem>-element.
Let wel: Die <menuitem>-element word tans SLEGS in Firefox ondersteun.
Toegang tot 'n MenuItem Object
Jy kan toegang tot 'n <menuitem>-element kry deur getElementById():
var x = document.getElementById("myMenuItem");
Skep 'n MenuItem Object
Jy kan 'n <menuitem> element skep deur die document.createElement() metode te gebruik:
var x = document.createElement("MENUITEM");
MenuItem Object Properties
Property | Description |
---|---|
checked | Sets or returns whether the menu item should be checked |
command | Sets or returns the value of the command attribute of the menu item |
default | Sets or returns whether the menu item should be the default command |
disabled | Sets or returns whether the menu item should be disabled |
icon | Sets or returns an image that represents the menu item |
label | Sets or returns the value of the label attribute of the menu item |
radiogroup | Sets or returns the value of the radiogroup attribute of the menu item |
type | Sets or returns the value of the type attribute of the menu item |
Standaard eiendomme en geleenthede
Die MenuItem objek ondersteun ook die standaard eienskappe en gebeurtenisse .
Verwante bladsye
HTML-verwysing: HTML <menuitem>-merker