0 points

javascript - Detect if a page has a vertical scrollbar? - Stack Overflow


dashboard

Mon Jun 29 2020 11:45:05 GMT+0000 (UTC)

Posted by @peota #javascript

var hasVScroll = document.body.scrollHeight > document.body.clientHeight;
content_copy Copy

https://stackoverflow.com/questions/2146874/detect-if-a-page-has-a-vertical-scrollbar