What is the best cross-browser way to detect the scrollTop of the browser window? I prefer not to use any pre-built code libraries because this is a very simple script, and
Or just simple as:
var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;