Anchor() (Constructor)

You can construct new Anchor objects in Netscape.

Availability:

JavaScript - 1.2
Netscape - 4.0
Property/method value type:Anchor object
JavaScript syntax:Nnew Anchor
Nnew Anchor()
Nnew myAnchor.constructor

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.

Warnings:

See also:Anchor object, Anchor.host