The receiving element hierarchy is checked to see if the element that is passed as an argument exists by reference within it.
The result of this method will be true if the element referred to by its argument is contained in the receivers node descendants. If by traversing the child nodes of the receiver the indicated element cannot be found, a false value is returned.
The functionality of this method is similar to that provided by the DOM level 1 compliant Node.hasChildNodes() method which should provide a more portable solution.
See also: | Element object, Node.hasChildNodes() |
Prev | Home | Next |
Element.componentFromPoint() | Up | Element.contentEditable |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |