我就是豆豆

导航

BOM

浏览器对象模型 (BOM)

浏览器对象模型(Browser Object Model)尚无正式标准

Window 尺寸

对于 Internet Explorer 8、7、6、5:

var w=window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth;
var h=window.innerHeight
|| document.documentElement.clientHeight
|| document.body.clientHeight;

HTML DOM close() 方法

定义和用法

close() 方法用于关闭浏览器窗口。

语法

window.close()

Window对象方法

scrollBy()

按照指定的像素值来滚动内容。

scrollTo()

把内容滚动到指定的坐标。

setInterval()

按照指定的周期(以毫秒计)来调用函数或计算表达式。 取消由 setInterval() 设置的 timeout为clearInterval()

setTimeout()

在指定的毫秒数后调用函数或计算表达式。 取消由 setTimeout() 方法设置的 timeout为clearTimeout()

open()

myWindow=window.open('','','width=200,height=100')为一种格式

posted on 2016-05-23 02:10  我就是豆豆  阅读(156)  评论(0)    收藏  举报