How can I determine the height of a horizontal scrollbar, or the width of a vertical one, in JavaScript?
if you are looking for a simple operation, just mix plain dom js and jquery,
var swidth=(window.innerWidth-$(window).width());
returns the size of current page scrollbar. (if it is visible or else will return 0)