Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.