Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 373089 of StyleSheet

  • Revision slug: DOM/StyleSheet
  • Revision title: StyleSheet
  • Revision id: 373089
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment titleStyleSheet DOM/StyleSheet

Revision Content

{{CSSOMRef}}

An object implementing the StyleSheet interface represents a single style sheet. CSS style sheets will further implement the more specialized {{domxref("CSSStyleSheet")}} interface.

Properties

{{domxref("StyleSheet/disabled","disabled")}}
This property indicates whether the current stylesheet has been applied or not.
{{domxref("StyleSheet/href","href")}}
Returns the location of the stylesheet.
{{domxref("StyleSheet/media","media")}}
Specifies the intended destination medium for style information.
{{domxref("StyleSheet/ownerNode","ownerNode")}}
Returns the node that associates this style sheet with the document.
{{domxref("StyleSheet/parentStyleSheet","parentStyleSheet")}}
Returns the stylesheet that is including this one, if any.
{{domxref("StyleSheet/title","title")}}
Returns the advisory title of the current style sheet.
{{domxref("StyleSheet/type","type")}}
Specifies the style sheet language for this style sheet.

Specification

See also

  • {{domxref("CSSStyleSheet")}}

Revision Source

<div>
  {{CSSOMRef}}</div>
<p>An object implementing the <code>StyleSheet</code> interface represents a single style sheet. CSS style sheets will further implement the more specialized {{domxref("CSSStyleSheet")}} interface.</p>
<h2 id="Properties" name="Properties">Properties</h2>
<dl>
  <dt>
    {{domxref("StyleSheet/disabled","disabled")}}</dt>
  <dd>
    This property indicates whether the current stylesheet has been applied or not.</dd>
  <dt>
    {{domxref("StyleSheet/href","href")}}</dt>
  <dd>
    Returns the location of the stylesheet.</dd>
  <dt>
    {{domxref("StyleSheet/media","media")}}</dt>
  <dd>
    Specifies the intended destination medium for style information.</dd>
  <dt>
    {{domxref("StyleSheet/ownerNode","ownerNode")}}</dt>
  <dd>
    Returns the node that associates this style sheet with the document.</dd>
  <dt>
    {{domxref("StyleSheet/parentStyleSheet","parentStyleSheet")}}</dt>
  <dd>
    Returns the stylesheet that is including this one, if any.</dd>
  <dt>
    {{domxref("StyleSheet/title","title")}}</dt>
  <dd>
    Returns the advisory title of the current style sheet.</dd>
  <dt>
    {{domxref("StyleSheet/type","type")}}</dt>
  <dd>
    Specifies the style sheet language for this style sheet.</dd>
</dl>
<h2 id="Specification" name="Specification">Specification</h2>
<ul>
  <li><a href="https://www.w3.org/TR/DOM-Level-2-Style/stylesheets.html#StyleSheets-StyleSheet">DOM Level 2 Style Sheets: <code>StyleSheet</code> interface</a></li>
</ul>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{domxref("CSSStyleSheet")}}</li>
</ul>
Revert to this revision