Implemented but nonfunctional in Navigator 2.0, 3.0, and Internet Explorer 3.0
document.anchors.length document.anchors[i]
An Anchor object is created by any standard HTML <A> tag that contains a <NAME> attribute:
<A NAME="anchor_name" links may refer to this anchor by this name [ HREF=URL ] an anchor may also be a link [ TARGET="window_name" ] links may refer to other windows > link text </A>
An "anchor" is a named location within an HTML document. Anchors are created with the NAME attribute of the <A> tag. The JavaScript Document object has an anchors[] array property that should contain references to each of the anchors in the document. Unfortunately, in Navigator 2.0 and 3.0 and in Internet Explorer 3.0, the elements of this array always contain null. The problem is that the Anchor object has not yet been implemented. A future version of the language should contain an actual working Anchor object, and the anchors[] array will be filled in with references to appropriate Anchor objects.
Note that the <A> tag used to create anchors is also used to create hypertext links. Although hypertext links are often called "anchors" in HTML parlance, they are represented in JavaScript with the Link object, not with the Anchor object.
file: /Techref/language/JAVA/SCRIPT/definitive/refp_06.htm, 5KB, , updated: 2019/10/14 15:00, local time: 2024/12/19 06:41,
3.145.33.159:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/techref/language/JAVA/SCRIPT/definitive/refp_06.htm"> [Chapter 21] Reference: Anchor</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.