All Objects
String Object
String.link
METHOD: String::anchor
object.
anchor
("name")
This method is used to create an HTML anchor in a document.
The following code creates an HTML anchor called "newAnchor" and writes the contents of the "myString"
String
object to the document which can then be used as a target for a hyperlink. This has identical results to using the HTML code: <A NAME="newAnchor">Anchor</A>
Code:
myString = new String("Anchor")
document.write (myString.anchor("newAnchor"))
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information