DekGenius.com
Team LiB   Previous Section   Next Section
MediaList.item( ) index an array of media types

Availability

DOM Level 2 StyleSheets

Synopsis

String item(unsigned long index);

Arguments

index

The position of the desired media type within the array.

Returns

The media type (a string) at the specified position within the MediaList, or null if index is negative or is greater than or equal to length. Note that in JavaScript, it is usually simpler to treat a MediaList object as an array and index it using square-bracket array notation instead of calling this method.

    Team LiB   Previous Section   Next Section