This is equivalent to the innerText property that MSIE supports. On Netscape 4 Url.text is ReadOnly while the Url.innerText property on MSIE 4 allows read and write access.
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 properly on Netscape on the Macintosh.
Even if it does work, you may only extract a portion of the text from the anchor.
See also: | Anchor.text, Url object |
Prev | Home | Next |
Url.target | Up | Url.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. |