In javascript, I needed to know if a browser was currently showing a scrollbar. This was fairly simple, but just thought I’d write it down.
window.innerHeight < document.documentElement.scrollHeight
In javascript, I needed to know if a browser was currently showing a scrollbar. This was fairly simple, but just thought I’d write it down.
window.innerHeight < document.documentElement.scrollHeight