Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











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-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information