title: document.getElementById("myFrame").contentWindow.myFrameFunction() won't work in Chrome 26.0.1410.64 m
body: <p>It works in Firefox 20.0.1 and IE 10.0.9200.16442, but both input elements won't work in Chrome 26.0.1410.64 m</p>
  
  <p>Chrome console showed this:</p>
  
  <p>Uncaught TypeError: Property 'say' of object [object global] is not a function </p>
  
  <p>========================main.html=======================</p>
  
  <pre><code>function say() { 
      alert("parent.html------&gt;I'm at parent.html"); 
  } 
  
  function callChild() 
  { 
      var ifrm = document.getElementById("myFrame");
      ifrm.contentWindow.say();
  } 
  
  &lt; input type=button value="invoke say() in the child.html" onclick="callChild()" /&gt; 
  
  &lt; iframe id="myFrame" name="myFrame" src="child.html" /&gt;
  </code></pre>
  
  <p>========================child.html=======================</p>
  
  <pre><code>function say() 
  {
      alert("child.html---&gt;I'm at child.html"); 
  } 
  
  function callParent() {
      window.parent.say();
  }
  
  &lt; input type=button value="invoke function say() in the parent.html" onclick="callParent()" /&gt; 
  </code></pre>