title: Access iframe functions
body: <p>This problem seem to happen only in chrome
  This is the iframe code</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;script&gt;
      function blahblah() { alert("test"); }
      &lt;/script&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
      &lt;title&gt;Test Page&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;p&gt; lalalalallalala!!! &lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is how I create the iframe </p>
  
  <pre><code>&lt;iframe src="iframetest.html" id="iframetest"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>I then try to call the iframe's blahblah() function:</p>
  
  <pre><code>$('#iframetest')[0].contentWindow.blahblah()
  </code></pre>
  
  <p>But this doesn't work</p>