Name

STYLE — NN n/a IE 4 DOM 1

Synopsis

The STYLE object reflects the STYLE element. This object is separate from the style object associated with virtually every element in a document. The STYLE object is generated in a document via the <STYLE> tag, which can have a unique ID value assigned to it; the style object contains all the style properties and their current values as set for a particular element.

Note that the lang, language, media and title properties are not available on the Macintosh version of Internet Explorer 4.

HTML Equivalent

<STYLE>

Object Model Reference

IE

[window.]document.all. elementID

Properties

className

isTextEdit

media

readyState

tagName

disabled

lang

parentElement

sourceIndex

title

document

language

parentTextEdit

style

type

id

    

Methods

click( )

insertAdjacentHTML( )

scrollIntoView( )

contains( )

insertAdjacentText( )

setAttribute( )

getAttribute( )

removeAttribute( )

 

Event Handler Properties

Handler

NN

IE

DOM

onerror

n/a

4

n/a

onload

n/a

4

n/a

onreadystatechange

n/a

4

n/a

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.