Microsoft® JScript™
link Method
Language Reference |
Version 1 |

See Also                  Applies To


Description
Places an HTML anchor 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 you want to place in the HREF attribute of the HTML anchor.

Remarks
Call the link method to create a hyperlink out of a String object. The following is an example of how the method accomplishes this:
var strVariable = "This is a hyperlink"
strVariable.link("http://example.microsoft.com")

The value of strVariable after the last statement is <A HREF="http://example.microsoft.com">This is a hyperlink</A>.

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


© 1997 Microsoft Corporation. All rights reserved.