瀏覽器窗口的尺寸(不包括工具欄和滾動條)
對於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() 加載新的文檔