title: How do you refresh a page, and the continue to perform actions afterwards?
body: <p>I'm currently writing a javascript program, and I'd like to refresh a web page, and then proceed to call a function that modifies the newly refreshed page afterwards.</p>
  
  <p>However, whenever I call location.reload(), the page ends up performing the actions prior to the refresh, despite the fact that I've placed them after the refresh in the code. How would I go about getting the page to form actions after a refresh?</p>