Although you can construct new anchors in Netscape, inserting them into a document is somewhat problematic since the correct way to do that would be to rewrite a fragment of HTML. You may find that replacing an anchor object in the document.anchors array links your new object to the <A> HTML tag at the appropriate location in the document.
This is only available on Netscape and is therefore not recommended for use in deployable applications. MSIE generates a runtime error if you attempt to make a new Anchor object.
See also: | Anchor object, Anchor.host |
Prev | Home | Next |
Anchor object | Up | Anchor.accessKey |
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. |