readOnly property (CSSStyleRule, rule, styleSheet)
Returns a Boolean value that indicates whether the current style sheet or rule is imported or not.
While designMode is enabled, the contents of the imported style sheets cannot be modified by scripts. Style sheets can be imported with the link element or the @import style rule.
You can find the related objects in the Supported by objects section below.
This property is read-only.
One of the following values:
|The style sheet or rule is internal.|
|The style sheet or rule is imported.|
Example HTML code 1:
This example illustrates the use of the readOnly property:
Did you find this example helpful?
User Contributed Comments