BOM
1.BOM模型
window:表示浏览器中打开的窗口;
navigator:包含你有关浏览器的信息;
screen:包含有关客户端的显示屏幕的信息;
history:包含用户(在浏览器窗口中)访问过的URL;
location:包含有关当前URL的信息;
document:包含当前浏览器加载的文档信息;
event:包含当前所触发的事件对象;
window对象是BOM的根对象,其他对象其实都是window对象的属性,
window对象的属性和方法都可以省略“window”,
如:window.document可以简写为document,window.alert()可以简写为alert();