title: Why does the code in Chrome console not execute after window.location.reload?
body: <p>I'm using the Chrome console using the snippet tool.</p>
  
  <p>When I execute my code without the <code>window.location.reload</code> I can refresh the page manually and the code runs and selects the button I need it to. Is there any way to make it reload the page when I run the code, and subsequently run the function?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>window.location.reload()
  window.onload=stephen;
  
  function stephen(){
      selectedValue('mills');
  }</code></pre>
  </div>
  </div>
  </p>