Platform Support
| Mozilla | Chrome | Safari | Opera | IE | Netscape | 3.7+ | no | 4.0.5+ | 7.0+ | no | no |
|---|
Constructors
| Constructor | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
HTMLCommandElement Constructor() : HTMLCommandElement
Creates an instance of the HTMLCommandElement.
|
Show Details | 3.7+ | no | 4.0.5+ | 7.0+ | no | no | ||
HTMLCommandElement() : HTMLCommandElementCreates an instance of the HTMLCommandElement. Returns
|
|||||||||
Properties
| Property | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape |
|---|---|---|---|---|---|---|---|
|
type
: String
Defines the type of command.
|
Show Details | 3.7+ | no | 4.0.5+ | 7.0+ | no | no |
|
|||||||
|
label
: String
Defines the name of the command.
|
Show Details | 3.7+ | no | 4.0.5+ | 7.0+ | no | no |
|
|||||||
|
icon
: String
Defines the picture to represent the command.
|
Show Details | 3.7+ | no | 4.0.5+ | 7.0+ | no | no |
|
|||||||
|
disabled
: Boolean
Defines whether the command is disabled.
|
Show Details | 3.7+ | no | 4.0.5+ | 7.0+ | no | no |
|
|||||||
|
checked
: Boolean
Defines whether the command is selected.
|
Show Details | 3.7+ | no | 4.0.5+ | 7.0+ | no | no |
|
|||||||
|
radiogroup
: String
Defines the name of the group of commands that will be toggled when the command itself is toggled.
|
Show Details | 3.7+ | no | 4.0.5+ | 7.0+ | no | no |
|
|||||||
Inherited Functions
| Method | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
getElementsByClassName(String classNames) : NodeList
Returns a NodeList containing all the
Element nodes with the specified classNames. |
Show Details | 1.9+ | 5.0+ | 3.1+ | 9.51+ | no | no | |||||
|
Parameters
Returns
|
||||||||||||
References
Availability
JavaScript 1.2|WhatWG