javascript link() method


  Translation results:

英[lɪŋk] 美[lɪŋk]

n. Link, knot; [computer] link; association, relationship

vt. Link; hold, hook

vi. Connect with a ring; link together

Third person singular: links Plural: links Present participle: linking Past tense: linked Past participle: linked

javascript link() methodsyntax

Function: is used to display strings as hyperlinks.

Syntax: stringObject.link(url)

Parameters: url Required. Specifies the URL to link to.​

javascript link() methodexample

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">

    var str="免费的php视频教程网站"
    document.write(str.link("http://www.php.cn"))

</script>

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A