String.link() (Method)

Encapsulates the string within an <A HREF="..."> tag context.

Availability:

JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Netscape Enterprise server - 2.0
Opera - 3.0
Property/method value type:String primitive
JavaScript syntax:-myString.link()
-myString.link(aURL)
Argument list:aURLThe URL to be embedded into an HREF HTML tag attribute

Passing in the string "A link" with the parameter "Some site" will result in the following string:

<A HREF="AAA">ABCD</A>

This is useful for creating hyperlinks within the document.

See also:LINK object, String.anchor(), Url object