type property

Retrieves the type of the rule.

Document Object Model (DOM) Level 2 Style Specification, Section 2.2Internet Explorer 9

 

Syntax

JavaScript

p = object.type

 

Property values

Type: Number

the type of the rule. Binding-specific casting methods can be used to cast down from an instance of the IHTMLCSSRule interface to the specific derived interface implied by the type.

STYLE_RULE (1)

The object is a style rule (a selector and a declaration block).

IMPORT_RULE (3)

The object is an @import rule.

MEDIA_RULE (4)

The object is an @media rule.

FONT_FACE_RULE (5)

The object is an @font-face rule.

PAGE_RULE (6)

The object is an @page rule.

NAMESPACE_RULE (7)

The object is an @namespace rule.

Standards information

See also

CSSFontFaceRule
CSSImportRule
CSSMediaRule
CSSNamespaceRule
CSSRule
page
rule

 

 

Show:
© 2014 Microsoft