JavaScript » String » link

Syntax:
object.link("targetURL")

This method is used to create an HTML hyperlink in a document.

Examples

Code:
myString = new String("DevGuru.com")
document.write (myString.link(www.devguru.com))
Explanation:

This has identical results as using the HTML code:
<A HREF="http//www.devguru.com">DevGuru.com</A>