Name

LINK — NN n/a IE 4 DOM 1

Synopsis

The LINK object reflects the LINK element. Note that many of the properties listed here are not available for scripting in the object unless their corresponding attributes are set initially in the HTML tag. This includes: href, rel, rev, and type. The media property is not available in the Macintosh version of IE 4. Fortunately, there is little need to script this object, since the impact of the LINK element is felt by the browser as the document loads.

HTML Equivalent

<LINK>

Object Model Reference

IE

[window.]document.all. elementID

Properties

className

href

parentElement

rel

tagName

disabled

id

parentTextEdit

rev

title

document

media

readyState

sourceIndex

type

Methods

contains( )

removeAttribute( )

setAttribute( )

getAttribute( )

  

Collections/Arrays

all[]

children[]

 

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.