title: iframe problem using javascript
body: <p>Does anyone know how to get the HTML out of an IFRAME? I have tried several different ways:</p>
  
  <p><code>document.getElementById('iframe01').contentDocument.body.innerHTML</code>, <code>document.frames['iframe01'].document.body.innerHTML</code>, <code>document.getElementById('iframe01').contentWindow.document.body.innerHTML</code>, etc</p>
  
  <p>but none of them worked.</p>
  
  <p>I believe the reason they're not working is that the content of my iframe doesn't have a body tag (I'm loading XML). Any other way to get all the contents of the iframe? I am open to jQuery too.</p>
  
  <p>This:</p>
  
  <p><code>document.getElementById('iframe01').contentWindow.document.body.innerHTML</code></p>
  
  <p>works fine in the IE, but this:</p>
  
  <p><code>document.getElementById('iframe01').contentDocument.body.innerHTML</code></p>
  
  <p>does not work for FF.</p>