This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

CSSMediaList


Summary

Represents an ordered collection of media types.


Properties

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


Methods

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.


Events

No events.


Additional Properties

The CSSMediaList object has these properties.

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


See also

Related articles

CSSOM












  • CSSMediaList





























































Attributions