The value of this property is defined by the NAME="..." tag attribute in the HTML that describes the document. Without the NAME attribute the anchor object does not get added to the anchors[] array.
This only works on MSIE and not in Netscape. This is because Netscape maintains links and anchors as strictly different things altogether. MSIE treats them as the same class of object.
Logically there is not much purpose in changing the name of a link anyway.
Be aware in MSIE that assigning a new name will affect the length of the document.anchors[] array even though the item is rightly a link object.
See also: | Anchor.name, Area.name, Document.links[], LinkArray.length, Url object |
Prev | Home | Next |
Url.mimeType | Up | Url.nameProp |
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. |