/*浏览器中的javascipt
BOM(浏览器对象模型)
window------- document
|----- frames
|----- history
|----- location
|----- navigator
|----- screen
各对象有的属性和方法可以查看具体文档
window.screenLeft,window.screenTop
当前窗口的左上角坐标,没有window.width和window.height
screen.width,screen.height 显示器的分辨率
document.body.offsetWidth,document.body.offsetHeight
当前视口(html页的区域)的大小,非标准属性,没有document.body.width,document.body.height
//屏幕居中
//var iLeft=(screen.width-document.body.offsetWidth)/2;
//var iTop=(screen.height-document.body.offsetHeight)/2;
//window.moveTo(iLeft,iTop);
*/