item method

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

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

 

Syntax

var retval = CSSMediaList.item(index);

Parameters

index [in]

Type: Integer

An index into the collection.

Return value

Type: String

The medium in the media list at the position number that is indicated by index, or null if that is not a valid index.

Standards information

Remarks

If index is greater than or equal to the number of media in the list, this method returns null.

See also

CSSMediaList
Reference
appendMedium
deleteMedium
length
mediaText

 

 

Show:
© 2014 Microsoft