if (div.scrollHeight > div.clientHeight) { //a scroll bar is present } else { //a scroll bar is NOT present }
Crossbrowserness?
Tested in:
FF 3.6.8
IE 7.0.5730.11
Chrome 5.0.375.126
Posted 11 August 2010 - 11:29 PM
if (div.scrollHeight > div.clientHeight) { //a scroll bar is present } else { //a scroll bar is NOT present }
0 members, 1 guests, 0 anonymous users