String Object
Anchor
METHOD: String::link
object.
link
("targetURL")
This method is used to create an HTML hyperlink in a document.
The following code writes the contents of the String object to the document as an HTML hyperlink that takes the user to the specified "targetURL". This has identical results as using the HTML code:
<A HREF="http//www.devguru.com">DevGuru.com</A>
Code:
myString = new String("DevGuru.com")
document.write (myString.link(www.devguru.com))
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information