javascript TD Description
td, th | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1 | |||||||||||||||||||
The td and th objects reflect the td and th elements. From an HTML structure viewpoint, the two elements have different purposes within a table; but from a scripting perspective, the elements share the same properties and methods. A cell is a cell. |
||||||||||||||||||||
While a table cell element may inherit a number of visual properties from containers (e.g., a td element appearing to pick up 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. Due to incomplete implementation, IE 4 for the Macintosh does not offer complete scripted access to these element objects. |
||||||||||||||||||||
HTML Equivalent | ||||||||||||||||||||
<td> <th> |
||||||||||||||||||||
Object Model Reference | ||||||||||||||||||||
[window.]document.getElementById("elementID") [window.]document.getElementById("tableRowID").cells[i] |
||||||||||||||||||||
Object-Specific Properties | ||||||||||||||||||||
|
||||||||||||||||||||
Object-Specific Methods | ||||||||||||||||||||
None. |
||||||||||||||||||||
Object-Specific Event Handler Properties | ||||||||||||||||||||
None. |
Powered by Linode.