windows对象

一:计时器

  setInterval和setTimeout

二:浏览器的定位和导航

  window.location

三:浏览历史

  window.history

  history.go(-n);

四:浏览器和屏幕信息

  navigator

appName Web浏览器的名称。在IE中就是“MicroSoft Internet Explorer“。在Firefox中时就是“Netscape”。为了兼容现存的浏览器嗅探代码,其他浏览器通常也取值为Netscape。
appVersion 通常以数字开始,并跟着包含浏览器厂商和版本的详细字符串。
userAgent 在他的USER-AGENT HTTP头部中发送的字符串。
platform 在其上运行浏览气的操作系统零的字符串

 

posted @ 2017-09-27 21:35  BluesQian  阅读(104)  评论(0编辑  收藏  举报