判断浏览器版本:
window.navigator.userAgent
浏览器地址栏:
window.location = 'http://www.miaov.com'
可视区高度获取宽度、高度
document.documentElement.clientWidth
document.documentElement.clientHeight
滚动条顶部(不包含可视区)(滚动条顶部到文档的距离)
document.documentElement.scrollTop // for IE下起作用
document.body.scrollTop //chrome下起作用
窗口打开与关闭
window.open("about:_blank","_blank")
window.close();