Name
StyleSheetList.item( ) — index an array of style sheets
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.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.