摘要: 除IE外的浏览器查看窗口大小和位置信息://The overall size of the browser window on the desktopvar windowWidth = window.outerwidth;var windowHeight = window.outerHeight; ... 阅读全文
posted @ 2015-10-10 17:08 coolsundy 阅读(770) 评论(0) 推荐(0)
摘要: Window对象是JavaScript层级中的顶层对象。Window对象表示一个浏览器窗口或一个框架,它在或出现时被自动创建。Window对象是全局对象,它的属性可作为全局变量来使用,它的方法可当作函数来使用,也就是说,引用Window对象的属性和方法时,可以省略对象名。如:使用document属性... 阅读全文
posted @ 2015-10-10 16:56 coolsundy 阅读(332) 评论(0) 推荐(0)
摘要: 在应用有frameset或者iframe的页面时,parent是父窗口,top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe),self是当前窗口, opener是用open方法打开当前窗口的那个窗口。window.self功能:是对当前窗口自身的引用。它和window属性是等... 阅读全文
posted @ 2015-10-10 16:55 coolsundy 阅读(273) 评论(0) 推荐(0)