Часто задаваемые вопросы по JavaScript

Ответ:

function getWindowWidth()
{
if (document.all) return document.body.clientWidth;
if (document.layers) return innerWidth;
return 800
}
function getWindowHeight()
{
if (document.all) return document.body.clientHeight;
if (document.layers) return innerHeight;
return 800
}










 

Рейтинг@Mail.ru          Rambler's Top100

X-ZiBiT