一 、history历史对象
1.history.back()
语法:history.back()
功能:回到历史记录的上一步
说明:相当于使用了history.go(-1)
2.history.forward()
语法:history.forward()
功能:回到历史记录的下一步
说明:相当于使用了history.go(1)
3.history.go(-n)
语法:history.go(-n)
功能:回到历史记录的前n步
4.history.go(n)
语法:history.go(n)
功能:回到历史记录的后n步
二、Screen对象属性
语法:screen.availWidth
功能:返回可用的屏幕宽度
语法:screen.availHeight
功能:返回可用的屏幕高度
三、Navigator对象
var ua=navigator.userAgent
UserAgent:用来识别浏览器名称、版本、引擎 以及操作
统等信息的内容。