title: Refresh parent page after closing Iframe Modal box
body: <p>The basics:
  I have a webpage where a user can 'add an article'; when they click to 'add an article' it opens an iframe (a pop-up modal box).</p>
  
  <p>In the Iframe there is a form with 'save' and 'cancel' buttons - what I'm trying to do is make it so when the user hits 'save', it will close the modal box, and then refresh the page.</p>
  
  <p>I have it set so the iframe closes and the data is saved to the database, but I can't get the page to refresh (which would then display the new article)</p>
  
  <p>I've been unable to do this as of yet, despite googling for days.  I'm not a javascript pro, but I've learned enough in the past couple days to do a thing or two.</p>
  
  <p>Here is the code for the button:</p>
  
  <pre><code>&lt;a class="toolbar" href="#" onclick="javascript: submitbutton('save'); return false;"&gt;
  </code></pre>
  
  <p>Here is the end of the javascript function that handles the saving of the data:</p>
  
  <pre><code>    function submitbutton(pressbutton) {
  ...
              &lt;?php endif; ?&gt;
              submitform( pressbutton );
  
          parent.$('sbox-window').close();    
  
          }
  
  
      }
  </code></pre>