TOC PREV NEXT INDEX

domref



lastChild


lastChild returns the last child of the current element.

Syntax

last_child = element.lastChild
 

Parameters

last_child is the final element node in the nodeList of children on the current element.

Example

tr = document.getElementById("row1");
 
corner_td = tr.lastChild;
 

Notes

Returns NULL if there are no child elements.

Specification

lastChild
 


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