JavaScript Reference/Javascript Methods/anchor
Версия от 18:30, 25 мая 2010; (обсуждение)
"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.