浏览器窗口的尺寸(不包括工具栏和滚动条)
对于ie,chrome,Firefox,opera,safari
window.innerHeight
对于ie5678
document.documentElement.clientHeight
或者
document.body.clientHeight
windows.screen对象包含有关用户屏幕的信息
screen.availWidth-可用的屏幕宽度
windows.location对象用于获得当前页面的地址(url),并把浏览器重定向到新的页面
location.hostname 返回web主机的域名
location.pathname 返回当前页面的路径和文件名
location.port 返回web主机的端口(80或443)
location.protocol 返回所使用的web协议(http://或https://)
location.href 返回当前页面的url
location.assign() 加载新的文档