window对象的方法
--alert(‘’)//弹出警告对话框
--confirm(‘确定要删除吗?’)//确定取消对话框,返回true、false
--location.href=‘url’ //将网页导航到
--setInterval(function(),1000)// 类似于timer,启动一个计时器,每隔一段时间执行操作
--clearInterval(计时器ID)//停止计时器
window对象属性
--window.location.href 获取当前的url
--window.location.reload();重新加载当前文档
--window.event //只支持IE
--window.event.
.clientX、.clientY
.offsetX、.offsetY
.screenX、.screenY
.button
.altKey、shiftKey、ctrlKey
.keyCode
--window..screen 获取屏幕信息