Change Language


Follow Navioo On Twitter

CSSImportRule : CSSRule

Represents an import rule in a CSS style sheet.

Platform Support

IE Mozilla Netscape Opera Safari
no 1.0+ no 9.0+ 1.0+

Constructors

Constructor Action IE Mozilla Netscape Opera Safari
CSSImportRule Constructor() : CSSImportRule
Represents an import rule in a CSS style sheet.
Show Details no 1.0+ no 9.0+ 1.0+

CSSImportRule() : CSSImportRule

Represents an import rule in a CSS style sheet.

Returns

CSSImportRule
Visibility
internal

Inherited Properties

Property Action IE Mozilla Netscape Opera Safari
cssText : String
Text for the current CSS rule.
Show Details 6.0+ 1.0+ no 9.0+ 1.0+

For examples, see the Navioo examples page:

http://www.navioo.com/html_css/CSS_Attributes_and_Javascript_Style_Properties_142.dhtml

Remarks

If you specify an invalid value for cssText, the property may throw one of the following DOMExceptions:

  • HIERARCHY_REQUEST_ERR - CSS rule is not legal in the current location in the CSS style sheet.
  • INVALID_MODIFICATION_ERR - New value for the CSS rule is for a different type than the previous type.
  • NO_MODIFICATION_ALLOWED_ERR - The CSS rule or its parent CSS style sheet is read-only.
  • SYNTAX_ERR - CSS syntax error.
Availability

HTML DOM Level 2|W3C

parentRule : CSSRule
Parent rule for the current CSS rule.
Show Details 6.0+ 1.0+ no 9.0+ 1.0+
Availability

HTML DOM Level 2|W3C

parentStyleSheet : CSSStyleSheet
CSS style sheet that contains the rule.
Show Details no 1.0+ no 9.0+ 1.0+

For examples, see the Navioo examples page:

http://www.navioo.com/html_css/CSS_Attributes_and_Javascript_Style_Properties_142.dhtml

Availability

HTML DOM Level 2|W3C

type : Number
Type of CSS rule.
Show Details no 1.0+ no 9.0+ 1.0+
Availability

HTML DOM Level 2|W3C

Properties

Property Action IE Mozilla Netscape Opera Safari
href : String
URL of the imported CSS style sheet.
Show Details 5.0+ 1.0+ no 9.0+ 1.0+

For examples, see the Navioo examples page:

http://www.navioo.com/html_css/CSS_Attributes_and_Javascript_Style_Properties_142.dhtml

Availability

HTML DOM Level 2|W3C

media : MediaList
Media types that the imported CSS style sheet applies to.
Show Details no 1.0+ no 9.0+ 1.0+
Availability

HTML DOM Level 2|W3C

styleSheet : CSSStyleSheet
CSSStyleSheet object that represents the imported CSS style sheet.
Show Details no 1.0+ no 9.0+ 1.0+
Availability

HTML DOM Level 2|W3C

Availability

HTML DOM Level 2|W3C

text_javascript Navioo_docs

Ajax Javascript feed

↑ Grab this Headline Animator