Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 779
نمايش فراداده

TreeWalker.lastChild( ) return the last child that is not filtered out

Availability

DOM Level 2 Traversal

Synopsis

Node lastChild( );

Returns

The last child of the current node that is not filtered out, or null if there is no such child.

Description

This method sets currentNode to the last child of the current node that is not filtered out and returns that child. If there is no such child, it leaves currentNode unchanged and returns null.