Javascript Reference
Objects > MediaList
javascript MediaList Description
The MediaList object is an abstract representation in the W3C DOM of a collection of string names for media specified for a particular styleSheet
javascript MediaList length
Returns the number of items in the collection.
javascript MediaList mediaText
Returns the entire string of comma-delimited media names.
javascript MediaList appendMedium( ), deleteMedium( )
Adds or removes a medium type from the list. In Netscape 6.2, the methods are incorrectly named append( ) and delete( ) .
javascript MediaList item( )
Returns one media name string from the collection corresponding to the item matching the index value in source code order.

Powered by Linode.