readOnly Property

Internet Development Index

Retrieves whether the rule or style sheet is defined on the page or is imported.

Syntax

[ bReadOnly = ] object.readOnly

Possible Values

bReadOnlyBoolean that receives one of the following values.
falseDefault. Rule or style sheet is obtained through a link object or the @import rule.
trueRule or style sheet is defined on the page.

The property is read-only. The property has a default value of false.

Remarks

You cannot modify style sheets obtained through a link object or the @import rule while the designMode property is enabled. For more information, see Introduction to MSHTML Editing.

Standards Information

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

styleSheet, rule