JavaScript Reference/Javascript Methods/anchor
"anchor()" Example
<html>
<body>
<button onclick="var myS = new String("Sample String");
alert(myS.anchor("myAnchor"));">
ANCHOR
</button>
"anchor()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |String |
+----------------+--------------------------------------------------------------+
"anchor()" Syntax, Parameters and Note
Note:
Creates an <a> element.
Syntax:
stringName.anchor(param1)
Parameters:
param1 Required; the <a> element"s name attribute.