PHP基础
PHP教程
php框架
JavaScript
asp.net
AJAX
正则表达式
ASP
输入
banner图
图片脚本
导航/分类
html的DOM中document对象anchors集合用法实例_javascript技巧
本文实例讲述了html的DOM中document对象anchors集合用法。分享给大家供大家参考。具体分析如下:
anchors 集合可返回对文档中所有 Anchor 对象的引用。
语法:
代码如下:
document.anchors[]
例子:
代码如下:
First anchor
Second anchor
Third anchor
Number of anchors in this document: