The text enclosed in a text node can be measured for length by this property. However it is still stored as a string value in the data property and you should not assume that it is an array simply because it has a length property.
Prev | Home | Next |
textNode.data | Up | textNode.splitText() |
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. |