* history
常用方法
名称 | 说 明 |
back() | 加载 history 对象列表中的前一个URL |
forward() | 加载 history 对象列表中的下一个URL |
go() | 加载 history 对象列表中的某个具体URL |
* location 对象
常用属性
名称 | 说 明 |
host | 设置或返回主机名和当前URL的端口号 |
hostname | 设置或返回当前URL的主机名 |
href | 设置或返回完整的URL |
常用方法
名称 | 说 明 |
reload() | 重新加载当前文档 |
replace() | 用新的文档替换当前文档 |
* Document 对象
常用属性
名称 | 说 明 |
referrer | 返回载入当前文档的文档的URL |
URL | 返回当前文档的URL |
常用方法
名称 | 说 明 |
getElementById() | 返回对拥有指定id的第一个对象的引用 |
getElementsByName() | 返回带有指定名称的对象的集合 |
getElementsByTagName() | 返回带有指定标签名的对象的集合 |
write() | 向文档写文本、HTML表达式或JavaScript代码 |
* JavaScript内置对象
Array:用于在单独的变量名中存储一系列的值。
String
:用于支持对字符串的处理。
Math
:用于执行常用的数学任务,它包含了若干个数字常量和函数。
Date
:用于操作日期和时间。