Skip to main content

StyleSheetList

The StyleSheetList interface represents a list of CSSStyleSheet objects. An instance of this object can be returned by Document.styleSheets.

MDN Reference

Indexable

[index: number]: CSSStyleSheet

Methods

[iterator]()

iterator: ArrayIterator<CSSStyleSheet>;

Returns

ArrayIterator<CSSStyleSheet>


item()

item(index): CSSStyleSheet | null;

The item() method of the StyleSheetList interface returns a single CSSStyleSheet object.

MDN Reference

Parameters

ParameterType
indexnumber

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.

MDN Reference