title: Refresh sub frame in frameset using javascript
body: <p>I would like to refresh a sub frame after the submit button is clicked on a different page. I have this working for two frames in the same frameset but the top frame will not reset the menu frame or sabre frame? I have seen a few examples around but I'm not getting it.</p>
  
  <p>Here is my code</p>
  
  <p>"Index page"</p>
  
  <pre><code>    &lt;frameset frameborder="NO" framespacing="0" rows="60px,80%"&gt;
      &lt;frame name="top" id="top" src="./top.php" name="top" scrolling="no"&gt;
          &lt;frameset frameborder="NO" framespacing="0" cols="420px,70%"&gt;
              &lt;frame name="menu" id="menu" src="./menu.php"&gt;
              &lt;frame name="sabre" id="sabre" src="./sabre.php"&gt;
          &lt;/frameset&gt;
  &lt;/frameset&gt;
  </code></pre>
  
  <p>"The submit on the top page"</p>
  
  <pre><code>'&lt;input onclick="parent.menu.menu_refresh()" 
  </code></pre>
  
  <p>"javascript on menu page"</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function menu_refresh(){
      setTimeout(
        function() 
        {
          window.location.reload();
           }, 2000);
      } 
  &lt;/script&gt;
  </code></pre>
  
  <p>By the looks of it parent term in the submit button is not referring back to the right level and cant find the menu page. Like I said this works when refreshing sabre page from menu and vice versa, but not for top page to menu or sabre. </p>