This yields the hash suffix of the HREF value in an <A> tag.
You can assign a new value to this property, which will become a new anchor location within the document.
This attribute may not work correctly when URLs are accessed from one frame to another in some versions of MSIE. You should check your target platforms for compliance.
If you assign a value to this property in MSIE, you should omit the leading hash.
Since the hash 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.focus() | Up | Anchor.host |
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. |