How can I determine the height of a horizontal scrollbar, or the width of a vertical one, in JavaScript?
You can determine window scroll bar with document as below using jquery + javascript:
window
document
var scrollbarWidth = ($(document).width() - window.innerWidth); console.info("Window Scroll Bar Width=" + scrollbarWidth );