How can I tell if there is a scroll bar on the page? Which element does the scroll bar belong to?

The DOM structure of the

page is as follows:

clipboard.png
when a scroll bar appears on the page, the scrollHeight and clientHeight of the body-sharpapp. Main-container. Container element are both equal
how to tell that the current page has a scroll bar?

Jul.03,2021

get the current window height document.documentElement.clientHeight
get the current body height document.body.clientHeight

if(document.body.clientHeight > document.documentElement.clientHeight){
    // 
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf22e6-54a37.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf22e6-54a37.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?