Bagikan melalui


link Method

Returns as string with an HTML anchor and an HREF attribute around the text in a String object.

function link(linkstring : String) : String

Remarks

Call the link method to create a hyperlink out of a String object.

No checking is done to see if the tag has already been applied to the string.

Example

The following is an example of how the method accomplishes this:

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

The value of strVariable after the last statement is:

<A HREF="https://www.microsoft.com">This is a hyperlink</A>

Requirements

Version 1

Applies To:

String Object

See Also

Reference

anchor Method