JavaScript String Object
The anchor() method is used to create an HTML anchor.
This method returns the string embedded in the <a> tag, like this:
<a name="anchorname">string</a>
| Parameter | Description |
|---|---|
| name | Required. The name of the anchor |
![]()
The anchor() method is supported in all major browsers.
Create an HTML anchor around a string:
JavaScript String Object
Your message has been sent to W3Schools.