title: Anyone know how to calculate the DOCUMENT dimensions, NOT the VIEWPORT in Javascript?
body: <p>Just to make sure everyone understands what I am asking for, I will run through what I believe are the basic distinctions between document, window, and viewport....</p>
  
  <p>WINDOW is the entire browser window, including all nav bars, etc....</p>
  
  <p>VIEWPORT is the portion of the window used to view the current XHTML/HTML/Flash document...</p>
  
  <p>DOCUMENT is the actual content area, akin to the body but includes ALL of the page's content. Only a portion of it is visible at any one time in the VIEWPORT (unless the page is the same size or smaller than the viewport).</p>
  
  <p>Now, there are many great answers for how to get the VIEWPORT dimensions. I am already well versed in that... cross-browser and all.</p>
  
  <p>What I really need to know is a simple, cross-browser solution that will give me the dimensions of the actual DOCUMENT in all browsers (no versions older than 3 years).</p>
  
  <p>I thought I found a great solution here once... long ago... but now I cannot find it.</p>
  
  <p>Anyone? Thanks for the read and hopefully someone can help.</p>
  
  <p>P.S. Did I mention I DO NOT want solutions for calculating the VIEWPORT? OR THE WINDOW?</p>
  
  <p>UPDATE: this solution MUST work in Opera 10.x, FireFox 3.6.x, IE 7/8/x, Flock 2.x, Safari 4.x... None of the answers below work in all browsers....</p>
  
  <p>So, if you have not tested it in all, please do not respond to the question.</p>