Javascript Reference
Categories: MediaList

javascript MediaList Description

@March 15, 2008, 1:22 a.m.
MediaListFirefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2  


The MediaList object is an abstract representation in the W3C DOM of a collection of string names for media specified for a particular styleSheet object. The media property of a styleSheet object returns a value that is a MediaList object (IE 6 for Windows incorrectly returns a string value). Media types (such as print, screen, aural, and so on) are specified for the style sheet either via the media attribute of a link element or an @media rule in a style element. As of Version 6 browsers, media support beyond print and screen types (and the default all type) is rather limited, so the details of this object are not yet important.

Object-Specific Properties
Object-Specific Methods
appendMedium( )deleteMedium( )item( )
Object-Specific Event Handler Properties


Powered by Linode.