Your Search Results


    The Document.styleSheets read-only property returns a StyleSheetList of CSSStyleSheet objects for stylesheets explicitly linked into or embedded in a document.


    var styleSheetList = document.styleSheets;

    The returned object is a StyleSheetList.

    It is an ordered collection of CSSStyleSheet objects. styleSheetList.item(index) or simply styleSheetList[index] returns a single stylesheet object by its index (index is 0-based).


    Specification Status Comment
    CSS Object Model (CSSOM)
    The definition of 'styleSheets' in that specification.
    Working Draft  
    Document Object Model (DOM) Level 2 Style Specification
    The definition of 'styleSheets' in that specification.

    See also

    Document Tags and Contributors

    Contributors to this page:
    Last updated by: teoli,
    Hide Sidebar