Здравствуйте, Korch76, Вы писали:
K>как можно узнать размер (высоту) клиентской области окна?
Без скроллбаров так:
var client_width=document.body.style.marginLeft+
document.body.style.borderLeftWidth+
document.body.clientWidth+
document.body.style.borderRightWidth+
document.body.style.marginRight;
var client_height=document.body.style.marginTop+
document.body.style.borderTopWidth+
document.body.clientHeight+
document.body.style.borderBottomWidth+
document.body.style.marginBottom;
Со скроллбарами:
var cr=document.body.getBoundingClientRect();
var client_width=cr.right-cr.left;
var client_height=cr.bottom-cr.top;