This yields the pathname portion of the HREF attribute in an <A> tag.
MSIE and Netscape support the use of this property as an LValue. If you write to it, the pathname portion of the HREF value is modified. Be careful not to include a hash or search/query value.
Since the pathname property of an Anchor object is not portable in all older browser versions, you should use the pathname property of the corresponding Url object to be able to work across MSIE and Netscape.
As features become deprecated, it may become necessary to support both techniques in browser specific code according to your needs regarding the support of legacy browsers.
Prev | Home | Next |
Anchor.nameProp | Up | Anchor.port |
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. |