javascript--document对象

来源:互联网 发布:java 腾讯地图api接口 编辑:程序博客网 时间:2024/06/14 21:50

每个载入浏览器的 HTML 文档都会成为 Document 对象。

Document 对象使我们可以从脚本中对 HTML 页面中的所有元素进行访问。

一、document对象的属性

1、title

2、url

3、cookie

4、domain



二、decument对象方法

1、open()

2、close()

3、write()

4、writeln()

5、getElementById()

6、getElementsByName()

6、getElementsByName()

7、getElementsByTagName()




0 0
原创粉丝点击