javascript anchors attribute
Translation results:
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 attributesyntax
Function: Returns references to all Anchor objects in the document.
Syntax: document.anchors[]
javascript anchors attributeexample
<html> <body> <a name="first">第一个锚</a><br /> <a name="second">第二个锚</a><br /> <a name="third">第三个锚</a><br /> <br /> 文档中锚的数目: <script type="text/javascript"> document.write(document.anchors.length) </script> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance