Platform Support
| Mozilla | Chrome | Safari | Opera | IE | Netscape | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|---|
Constructors
| Constructor | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
HTMLStyleElement Constructor() : HTMLStyleElement
Creates an instance of the HTMLStyleElement.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no | ||
HTMLStyleElement() : HTMLStyleElementCreates an instance of the HTMLStyleElement. Returns
|
|||||||||
Properties
| Property | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape |
|---|---|---|---|---|---|---|---|
|
disabled
: Boolean
Specifies whether the style element is disabled.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
media
: String
Specifies which media the styles apply to.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
type
: String
Specifies the styling language.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | no |
|
|||||||
|
scoped
: Boolean
Indicates whether the styles are intended just for the subtree rooted at the style element's parent element, as opposed to
the whole Document.
|
Show Details | 3.5+ | no | 4.0.5+ | 10.5+ | 9.0+ | 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