Microsoft® JScript link Method |
| Language Reference | |
Places an HTML Anchor tag with an HREF attribute around the text in a String object.
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.
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.