O'Reilly logo

Dynamic HTML: The Definitive Reference by Danny Goodman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required