title: How to call parent window function from child window jquery?
body: <p>i just need to call function in parent window while user is focusing on child window.
  i have this code in my parent window,</p>
  
  <pre><code>&lt;html&gt; 
      &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script language="Javascript" type="text/javascript"&gt;
          function CallParent()
          {
              alert(" Parent window Alert");
          }
      &lt;/script&gt;
      &lt;body&gt; 
          &lt;a href="javascript:void(0);" NAME="My Window Name" title=" My title here " onClick=window.open("child.html","Ratting","width=550,height=170,0,status=0,");&gt;Click here to open the child window&lt;/a&gt;
      &lt;/body&gt; 
  &lt;/html&gt;
  </code></pre>
  
  <p>and bellow code is in my child window,</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
          &lt;script language="Javascript" type="text/javascript"&gt;
              jQuery(document).ready(function(){  
                  window.opener.CallParent();
              });
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt; 
          &lt;h2&gt;This is Child window&lt;/h2&gt; 
      &lt;/body&gt; 
  &lt;/html&gt;
  </code></pre>
  
  <p>so..in this case i supposed that <code>CallParent()</code> will be fired just after child window is opened. but it seems to be not working.
  can any one give me any hints to make this script to work, or any better way to do this.</p>