title: How to get an iframe contents width?
body: <p>I got an iframe in my page. Like this :</p>
  
  <pre><code>&lt;iframe width="600px"&gt;
      &lt;html&gt;
          &lt;head&gt;
          &lt;/head&gt;
          &lt;body&gt;
              &lt;p&gt;Some text&lt;/p&gt;
              &lt;img src="/foo/bar/test.png" /&gt;
          &lt;/body&gt;
      &lt;/html&gt;
  &lt;/iframe&gt;
  </code></pre>
  
  <p>I want to be able to detect if the iframe contents is larger than 600px. I tried this one :</p>
  
  <pre><code>var iframe = $('iframe');
  if (iframe.width() &lt; iframe.contents().width()) {
      console.log('contents larger than the iframe');
  }
  </code></pre>
  
  <p>It works on Firefox and Internet Explorer. But not on Chrome. On Chrome, <code>iframe.contents().width()</code> is 600.</p>
  
  <p>I tried <code>iframe.contents().find('body').width()</code> but the result is also 600.</p>
  
  <p>How can i detect the iframe contents real width in Chrome ?</p>