title: Can't call function of parent window in child window
body: <p>I have problem that I can't call function of parent window in child window.</p>
  
  <pre><code>var value = "test";
  function drawChart() {
      myWindow = window.open("", "Chart", "width=500, height=500");
      myWindow.console.log(parent.value);
      myWindow.parent.createGraph();
  }
  
  function createGraph(){
    ...
  }
  </code></pre>
  
  <p>I can access global variable value, but not call function createGraph.
  I am getting error: </p>
  
  <blockquote>
    <p>Uncaught TypeError: myWindow.createGraph is not a function</p>
  </blockquote>
  
  <p>I moved all javaScript in head, but still not working.</p>