Create an HTML anchor around a string:
The anchor() method is not standard, and may not work as expected in all browsers.
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>
Method | |||||
---|---|---|---|---|---|
anchor() | Yes | Yes | Yes | Yes | Yes |
Parameter | Description |
---|---|
name | Required. The name of the anchor |
Return Value: | A string embedded in the <a> tag |
---|