StyleSheetList
The StyleSheetList interface represents a list of CSSStyleSheet objects. An instance of this object can be returned by Document.styleSheets.
Indexable
[index: number]: CSSStyleSheet
Methods
[iterator]()
iterator: ArrayIterator<CSSStyleSheet>;
Returns
item()
item(index): CSSStyleSheet | null;
The item() method of the StyleSheetList interface returns a single CSSStyleSheet object.
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
CSSStyleSheet | null
Properties
length
readonly length: number;
The length read-only property of the StyleSheetList interface returns the number of CSSStyleSheet objects in the collection.