Definition and Usage The link() method is used to display a string as a hyperlink. Syntax stringObject.link(url) Parameter ...
Definition and Usage
The link() method is used to display a string as a hyperlink.Syntax
stringObject.link(url) |
Parameter | Description |
---|---|
url | Required. Specifies the URL to link to |
Example
In this example "Free Web Tutorials!" will be displayed as a hyperlink:<script type="text/javascript"> var str="Free online Tutorials!"; document.write(str.link("http://www.1000sourcecodes.com")); </script> |