Name

DISABLED — NN n/a IE 4 HTML n/a

Synopsis

DISABLED

Optional

Disables the entire STYLE element, as if it didn’t exist in the document. This attribute does not work on the Macintosh version of Internet Explorer 4.

The DISABLED attribute is a Boolean type, which means that its presence in the attribute sets its value to true. Its value can also be adjusted after the fact by scripting (see the button object in Chapter 9).

Example

<STYLE TYPE="text/css"  DISABLED>...</STYLE>

Value

The presence of the attribute disables the element.

Default

false

Object Model Reference

IE

[window.]document.all.tags(“STYLE”)[i].disabled

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.