To make a page that has scrollbar disabled when a particular button is clicked, I plan to set an additional padding to the body with js to compensate for the hidden scroll. I've been reading around so many browsers already have a default width of 17px, but others have different specifications. What I need is a solution to detect the width of the native scrollbar document, grab this value and add it to the body.
$('body').css('padding-right', WidthDoScrollbar);