n. Anchor (plural noun of anchor); an object (or person) that gives people a sense of security
v. Anchor (third person singular of anchor); responsible for (TV programs, etc.) Host; (to tie...), (to make) fixed
javascript anchors attribute syntax
Function: Returns references to all Anchor objects in the document.
Syntax: document.anchors[]
javascript anchors attribute example
<html> <body> <a name="first">第一個(gè)錨</a><br /> <a name="second">第二個(gè)錨</a><br /> <a name="third">第三個(gè)錨</a><br /> <br /> 文檔中錨的數(shù)目: <script type="text/javascript"> document.write(document.anchors.length) </script> </body> </html>
Run instance ?
Click the "Run instance" button to view the online instance