Q:

To find out if a div has a scrollbar

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

A:

Check if clientHeight is smaller than scrollHeight.

