Re: detect if scrollbars are visible inside a div
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: detect if scrollbars are visible inside a div

From: <andrew.neale@totalise.co.uk>
Date: Thu Aug 11 2005 - 16:03:19 CEST

I think I have sorted the problem

if (document.getElementById('divID').scrollHeight >
document.getElementById('divID').clientHeight)
{
                                //a scroll bar is present
}
else
{
                               //a scroll bar is NOT present
}

can anyone see any problems with this?
Received on Tue Oct 18 03:07:39 2005