JavaScript之浏览器对象
window:当前浏览器窗体的。
属性:status、opener、closed
方法:alert()、confirm()、setInterval()、clearInterval()、setTimeout()、clearTimeout()、open()
window对象的其他子对象:document、frames、location、history、screen等
得到窗体的宽度、高度:
document.body.clientWidth
window:当前浏览器窗体的。
属性:status、opener、closed
方法:alert()、confirm()、setInterval()、clearInterval()、setTimeout()、clearTimeout()、open()
window对象的其他子对象:document、frames、location、history、screen等
得到窗体的宽度、高度:
document.body.clientWidth