List of associated media types in a stylesheet.
Platform Support
IE | Mozilla | Netscape | Opera | Safari | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
---|
Constructors
Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
---|---|---|---|---|---|---|---|---|
MediaList Constructor() : MediaList
List of associated media types in a stylesheet.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | ||
MediaList() : MediaListList of associated media types in a stylesheet. Returns
|
Properties
Property | Action | IE | Mozilla | Netscape | Opera | Safari |
---|---|---|---|---|---|---|
length
: Number
Number of media types in the list.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
mediaText
: String
Text string containing the entire media type list.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
Functions
Method | Action | IE | Mozilla | Netscape | Opera | Safari | |||||
---|---|---|---|---|---|---|---|---|---|---|---|
appendMedium(String newMedium) : void
Appends a new media type to the bottom of the list.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||
Parameters
Returns
|
|||||||||||
deleteMedium(String oldMedium) : void
Deletes the specified media type from the list.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||
Parameters
Returns
|
|||||||||||
static item(Number index) : String
Returns the media type found at the specified position in the list.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||
Parameters
Returns
|
Availability
HTML DOM Level 2|W3C