title: window.parent.document working in firefox , but not in chrome and IE
body: <p>My concept is to update the value of the text box in the main page from the iframe . This code is working in <code>firefox</code> , but not working in <code>Internet Explorer</code> and <code>Chrome</code> . Both <code>main.html</code> and <code>frame.html</code> are in same location . I need suggestions to make it work in all the browsers . </p>
  
  <p>main.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt; main window &lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  Parent textbox :&lt;input type="text" id="parentbox"&gt;&lt;/br&gt;&lt;/br&gt;&lt;/br&gt;
  &lt;iframe src="frame.html" &gt;&lt;/iframe&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>frame.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt; frame window &lt;/title&gt;
  &lt;script src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  function PushValues()
  {
   var frame_value = document.getElementById("framebox").value;
   window.parent.document.getElementById("parentbox").value =frame_value;
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;input type="text" id="framebox" &gt;
  &lt;input type="button" value ="fill" onclick="PushValues()"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>