title: document.body.offsetWidth variations for different browsers
body: <p>document.body.offsetWidth returns the innerwidth value from left hand side to the left side of the vertical scrollbar in firefox.
  In IE it doesn't, instead it returns from left hand side to the right side of the vertical scrollbar.
  Does anyone know a sensible way I could make a veriable such as "var = offsetw;" for offsetw to be the scrollbar width I need to subtract to get a firefox like document.body.innerWidth value?
  Heres what I have.</p>
  
  <pre><code>if (parseInt(navigator.appVersion)&gt;3) {
      if (navigator.appName=="Netscape") {
          winW = 16;
          winH = 16;
      }
      if (navigator.appName.indexOf("Microsoft")!=-1) {
          winW = 20;
          winH = 20;
      }
      if (navigator.appName.indexOf("Mozilla")!=-1){
          winW = 0;
          winH = 0;
      }
  }
  </code></pre>
  
  <p>Firefox currently uses the 16 value and not the zero declared by the Mozilla line, which indicates it is wrong.</p>
  
  <p>I'm after an addition or fix to get winW and winH to the correct size of the scrollbar for each browser only if those browsers don't subtract the scrollbar from document.body.offsetWidth automatically</p>
  
  <p>Thanks :)</p>