JavaScript String anchor()
JavaScript String anchor()
The anchor method is used to return a string embedded in an tag. It is like:- < a name="anchorname" >my string< /a >
Syntax:-
Its syntax is:- string.anchor("name")
Return:-
Its return is:- new string embedded in tag
Further Explanation:-
Parameter | Description |
name | Required. The name of the anchor. |