JavaScript link() Method
JavaScript String Object
Definition and Usage
The link() method is used to display a string as a hyperlink.
Syntax
| Parameter |
Description |
| url |
Required. The URL to link to |
Example
Example
Display the text: "Free Web Tutorials!" as a hyperlink:
<script type="text/javascript">
var str="Free Web Tutorials!";
document.write(str.link("http://www.w3schools.com"));
</script>
|
Try it yourself »
|
JavaScript String Object
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|