This is equivalent to the innerText value that MSIE supports. It only works on Netscape and is somewhat less reliable than the innerText property in MSIE.
Assigning to this property in MSIE simply creates a text property, but does not affect the text of the anchor.
The value yielded by this property (when it does work) is the text between the <A> and </A> tags.
You will need to detect the browser type before attempting to use this property.
Does not work on Netscape Navigator version 4.7 on the Macintosh. Instead it displays some fragment of body text that comes from outside the anchor tags.
Even if it does work, you may only extract a portion of the text from the anchor.
See also: | Anchor object, Element.innerText, Url.text |
Prev | Home | Next |
Anchor.target | Up | Anchor.type |
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. |