Availability
DOM Level 2 Traversal
Synopsis
Node previousNode( );Returns
The nearest node that precedes the current node in the document
source and is not filtered out, or null if there
is none.
Description
This method sets currentNode to the previous node
(in document source order) that is not filtered out and returns that
node. If there is no such node, or if the search for the previous
node takes the TreeWalker outside of the root
subtree, currentNode remains unchanged and the
method returns null.
Note that this method "flattens" the document tree
structure and returns nodes in the order in which they appear in the
document source. Calling previousNode( ) may cause
the current node to move down, sideways, or up the document tree.
This type of flattening traversal can also be performed with
NodeIterator.previousNode( ).
•
Table of Contents
•
Index
•
Reviews
•
Examples
•
Reader Reviews
•
Errata
JavaScript: The Definitive Guide, 4th Edition
By
David Flanagan
Publisher
: O'Reilly
Pub Date
: November 2001
ISBN
: 0-596-00048-0
Pages
: 936
Slots
: 1
This fourth edition of the definitive reference to
JavaScript, a scripting language that can be embedded
directly in web pages, covers the latest version of the
language, JavaScript 1.5, as supported by Netscape 6 and
Internet Explorer 6. The book also provides complete
coverage of the W3C DOM standard (Level 1 and Level 2),
while retaining material on the legacy Level 0 DOM for
backward compatibility.