Compare Revisions

String.prototype.anchor()

Change Revisions

Revision 87925:

Revision 87925 by Maian on

Revision 87926:

Revision 87926 by Maian on

Title:
anchor
anchor
Slug:
JavaScript/Reference/Global_Objects/String/anchor
JavaScript/Reference/Global_Objects/String/anchor
Tags:
"String Methods"
"String Methods"
Content:

Revision 87925
Revision 87926
n66      The following example opens the <code>msgWindow</code> windn66      The following example code within an HTML <code>script</cod
>ow and creates an anchor for the table of contents:>e> element:
n69var myString="Table of Contents"n69var myString = "Table of Contents";
70msgWindow.document.writeln(myString.anchor("contents_anchor"))70document.writeln(myString.anchor("contents_anchor"));
t73      The previous example produces the same output as the followt73      will output the following HTML:
>ing HTML: 

Back to History