Microsoft® JScript
link Method

See Also

Language Reference 

Description

Places an HTML Anchor tag with an HREF attribute around the text in a String object.

Syntax

strVariable.link( linkstring )
"String Literal".link( linkstring )

The linkstring argument is the text that is to be placed in the HREF attribute of the HTML anchor.

Remarks

Call this method to create a link out of a string object. The following is an example of how the method accomplishes this:


var strVariable = "This is a link"
strVariable.link("http://www.microsoft.com")

The value of strVariable after the last statement is: <A HREF="http://www.microsoft.com">This is an link</A>.

No checking is done to see if the tag already exists.


© 1996 by Microsoft Corporation.
Casa de Bender