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

TD — NN n/a IE 4 DOM 1

Synopsis

The TD object reflects the TD element. While a TD element may inherit a number of visual properties from containers (e.g., the bgColor of a TBODY or TR element), those inherited property values are not automatically assigned to the TD object. Therefore, just because a cell may have a yellow background color doesn’t mean its bgColor property is set at all. The following items aren’t available in the Macintosh version of Internet Explorer 4: outerText and outerHTML properties; insertAdjacentHTML( ) and insertAdjacentText( ) methods.

HTML Equivalent

<TD>

Object Model Reference

IE

[window.]document.all. elementID

Properties

align

clientWidth

language

parentElement

 

background

colSpan

noWrap

parentTextEdit

 

bgColor

document

offsetHeight

rowSpan

 

borderColor

height

offsetLeft

sourceIndex

 

borderColorDark

id

offsetParent

style

 

borderColorLight

innerHTML

offsetTop

tagName

 

cellIndex

innerText

offsetWidth

title

 

className

isTextEdit

outerHTML

vAlign

 

clientHeight

lang

outerText

width

 

Methods

blur( )

getAttribute( )

removeAttribute( )

click( )

insertAdjacentHTML( )

scrollIntoView( )

contains( )

insertAdjacentText( )

setAttribute( )

focus( )

  

Collections/Arrays

all[]

children[]

filters[]

Event Handler Properties

Handler

NN

IE

DOM

onafterupdate

n/a

4

n/a

onbeforeunload

n/a

4

n/a

onblur

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