TOC PREV NEXT INDEX

domref



firstChild


firstChild returns the first child element of the current element

Syntax

element = element.firstChild
 

Parameters

The element parameter returned is a node of type element.

Example

trow = document.getElementById("row1");
 
left_cell = trow.firstChild;
 

Notes

Returns NULL if the current node is childless.

Specification

firstChild
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX