JavaScript String link() methode
Definitie en gebruik
De string link() is in JavaScript verouderd.
Voorkom het gebruik ervan.
Het kan op elk moment stoppen met draaien in uw browser.
link()
The method returns the string embedded in the <a> tag:
<a href="url">string</a>
Example
let text = "Free Web technology tutorials!"; let result = text.link("https://www.codew3c.com");
Syntax
string.link("url")
Parameters
Parameters | Description |
---|---|
url | Required. The URL to be linked to. |
Return value
String embedded in the <a> tag.