is there a way to set the document.documentElement.clientHeight property in IE6?
it works fine in firefox (window.innerHeight). I can get the clientHeight in IE6 but everytime i try to set it, it throws an error.
help please
thanks!
by the way, here's the js:
function windowHeight()
{
var h = document.getElementById('contents').offsetHeight;
//firefox
if (typeof (window.innerHeight) == 'number')
{
window.innerHeight = h + 24;
}
//ie
else
{
if (document.documentElement && document.documentElement.clientHeight)
{
document.documentElement.clientHeight = h + 24;
}
else
{
if (document.body && document.body.clientHeight)
{
document.body.clientHeight = h + 24;
}
}
}
}

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Back to top









