Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 751
نمايش فراداده

Availability

DOM Level 2 StyleSheets

Synopsis

StyleSheet item(unsigned long index);

Arguments

index

The position of the desired style sheet within the array.

Returns

The StyleSheet object at the specified position within the array, 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 StyleSheetList object as an array and index it using square-bracket array notation instead of calling this method.