views:

62

answers:

1

If a div is set as overflow:auto, how can I find out (using plain JS) if a scrollbar (Vertical / Horizontal) has been rendered?

+3  A: 

Compare clientHeight and scrollHeight.

rahul