CSSMediaList object

Represents an ordered collection of media types.

Document Object Model (DOM) Level 2 Style Specification, Section 1.2

Members

The CSSMediaList object has these types of members:

Methods

The CSSMediaList object has these methods.

MethodDescription
appendMedium

Adds a medium to the end of the current list. If the medium is already used, it is first removed.

deleteMedium

Deletes a medium from the current list.

item

Gets the medium at the position number that is indicated by an index in the current list.

 

Properties

The CSSMediaList object has these properties.

PropertyDescription

length

Retrieves the number of properties that are explicitly set on the parent object.

mediaText

Sets or retrieves the parsable textual representation of the current media list.

 

Standards information

See also

IHTMLCSSMediaList

 

 

Show:
© 2014 Microsoft