title: Maintain fullscreen mode while refreshing in javascript
body: <pre><code>&lt;script&gt;
  GoFullscreen();
  location.reload(); // Browser automatically goes out of fullscreen on this
  &lt;/script&gt;
  </code></pre>
  
  <p>If I use this code in a web page it will go fullscreen, refresh, and the browser will automatically go out of fullscreen because of the refresh. I need the code to go fullscreen and refresh, without going out of fullscreen mode.</p>
  
  <pre><code>&lt;script&gt;
  GoFullscreen();
  RefreshPage(); // Refreshes the page without going out of fullscreen
  &lt;/script&gt;
  </code></pre>
  
  <p>Something along these lines</p>
  
  <p>If you want to know why I'm trying to refresh the page like this, it's a work around to my other question <a href="https://stackoverflow.com/questions/18691613/completely-reloading-a-canvas-element-with-data-processing-sources">here</a> unless I get an answer there. If anyone knows how to reload data-processing-sources on a canvas that would make it so I didn't need this. Otherwise refreshing the entire page is the only way I know to reload the data-processing-sources.</p>