title: Redirect with HTML vs JavaScript
body: <p>When would you use meta http-equiv=&quot;refresh&quot;:</p>
  <pre><code>&lt;meta http-equiv=&quot;refresh&quot; content=&quot;5; url = https://stackoverflow.com/questions/ask&quot; /&gt;
  </code></pre>
  <p>instead of:</p>
  <pre><code>&lt;body onload=&quot;window.location = 'https://stackoverflow.com/questions/ask'&quot;&gt;
  </code></pre>
  <p>?</p>