I think you can search for window.getComputedStyle(element, null) . The documentation can be found on the mdn website.
An example would look like this:
var container = document.getElementById("whatever"); var computed = window.getComputedStyle(container, null).getPropertyValue("height");
This should give you the width minus the scrollbars.
jsbin example
source share