METHOD:  String::anchor


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>

myString = new String("Anchor")
document.write (myString.anchor("newAnchor"))

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information