The rule object defines a set of Cascading Style Sheet (CSS) attributes applied to a set of HTML elements.
Properties MethodsNo methods.
EventsNo events.
ExamplesThis example uses a rule object consisting of the selector H1 to define a single rule that changes the H1 headings in a document to red.
<STYLE>
H1 { color: red }
</STYLE>
If the style sheet containing the preceding rule is the first style sheet in the document, the following code returns the rule object associated with the rule.
oRule=document.styleSheets(0).rules(0)
Notes Remarks
The rule object defines a set of Cascading Style Sheets (CSS) attributes applied to a set of HTML elements. For example, a rule consisting of the selector H1 and the declaration font-family:Arial defines all H1 elements to render in the Arial font. This object is available in script as of Microsoft Internet Explorer 5.
See also Related pagesMicrosoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4