亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

html的DOM中document對象anchors集合用法實例

 更新時間:2015年01月21日 10:18:23   投稿:shichen2014  
這篇文章主要介紹了html的DOM中document對象anchors集合用法,實例分析了anchors集合的功能及使用技巧,需要的朋友可以參考下

本文實例講述了html的DOM中document對象anchors集合用法。分享給大家供大家參考。具體分析如下:

anchors 集合可返回對文檔中所有 Anchor 對象的引用。

語法:

復制代碼 代碼如下:
document.anchors[]

例子:
復制代碼 代碼如下:
<html> 
 
<body> 
<a name="first">First anchor</a><br /> 
<a name="second">Second anchor</a><br /> 
<a name="third">Third anchor</a><br /> 
<br /> 
 
Number of anchors in this document: 
<script type="text/javascript"> 
document.write(document.anchors.length) 
</script> 
</body> 
 
</html>

希望本文所述對大家的javascript程序設計有所幫助。

相關文章

最新評論