JScript Method-Link method

Source: Internet
Author: User
Js|jscript places an HTML anchor with an HREF attribute in the String object at both ends of the text.

Strvariable.link (linkstring)
"String Literal". Link (linkstring)

The linkstring parameter is the text that you want to place in the HREF attribute of the HTML anchor point.

Description
Call the link method to create a hyperlink outside of a String object. Here is an example of how the method implements this functionality:

var strvariable = "This is a hyperlink";
strvariable = Strvariable.link ("http://www.microsoft.com");
After the last statement is executed, the value of the strvariable is:

<a href= "http://www.microsoft.com" >this is a hyperlink</a>
Does not check whether the tag has been applied to the string.

Requirements
Version 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.