浏览器对象

window对象

document //文档对象
innerWidth  //浏览器内部宽度
open() //打开窗口   
close()//关闭窗口

//计时器
setInterval(方法,每多少毫秒执行一次)
clearInterval(set时候返回的id)停止
setTimeout(方法延迟多少毫秒后执行)
clearTimeout(停止)

window.History//对象
back()  //回退
forward() //向前
go()//去哪里  -1表示上一个页面 登录跳转

window.Location
hostname  //域名
pathname  //页面路径
port //端口
assign(域名)  //跳转

window.Screen
availHeight  //可用高度
height //总高度

首页 我的博客
粤ICP备17103704号