title: Javascript - Getting document width
body: <p>I'd like to get the document's width with javascript (jQuery available), which I could achieve simply with <code>document.width</code>. The problem comes up when the contents are positioned with a negative value, because <code>document.width</code> will retrieve the width less that value (you can see this behavior in <a href="http://jsfiddle.net/McgzK/1/" rel="nofollow">http://jsfiddle.net/McgzK/1/</a>). So, is there a way I can get the document's width straight forward, or should I do something like <code>document.width - parseInt($(container).css('left'))</code>?</p>