JavaScripture
Contribute via GitHub Feedback

JavaScript StyleSheetList : Object

A list of StyleSheets. Returned from the document.styleSheets property.

Instance Indexers

this[index : Number] : StyleSheet

Returns the StyleSheet at the specified index. You can also use the item() method to retrieve the item. The returned StyleSheet will generally be a CSSStyleSheet.

Example:

Run

Results:

 

Instance Properties

length : Number  

The number of StyleSheets in the list.

Example:

Run

Results:

 

Instance Methods

item(index : Number) : StyleSheet

Same as this[index].