title: Lightswitch 2013: Save then Refresh in JS
body: <p>I have the 2 sets of code:</p>
  
  <ol>
  <li>Saves the data</li>
  </ol>
  
  <blockquote>
    <p>myapp.activeDataWorkspace.ProjectHandlerData.saveChanges();</p>
  </blockquote>
  
  <p>2.Refreshes the page</p>
  
  <pre><code>window.location.reload();
  </code></pre>
  
  <p>is there a way to make both of these work together on one button, as currently when i click save, the browser recognizes the changes and the (are you sure you want to leave the page) message or something along those lines pops up..</p>
  
  <p>cheers</p>