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 ...

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.