title: How to create redirect page for all external link in blogger
body: <p>I'm very new with these codes but i will try to explain for your better understand.</p>
  
  <p>What I want, I want to create a page in blogger which will redirect after 5 - 10 sec. and just like php we can redirect any external url (download link) through that page. I found some code but it's not redirect properly, showing you below...</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>&lt;h3&gt;Page Will Redirect After &lt;span id="countdown"&gt;10&lt;/span&gt; seconds&lt;/h3&gt;
  
  &lt;!-- JavaScript part --&gt;
  &lt;script type="text/javascript"&gt;
      
      // Total seconds to wait
      var seconds = 20;
      
      function countdown() {
          seconds = seconds - 1;
          if (seconds &lt; 0) {
              // Chnage your redirection link here
              window.location = "https://www.google.com";
          } else {
              // Update remaining seconds
              document.getElementById("countdown").innerHTML = seconds;
              // Count down using javascript
              window.setTimeout("countdown()", 1000);
          }
      }
      
      // Run countdown function
      countdown();
      
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </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-html lang-html prettyprint-override"><code>With this code i made a page (example: abc.blogspot.com/p/go.html) and i add link in post "&lt;a href="http://abc.blogspot.com/p/go.html?redirect=www.facebook.com"&gt;LINK&lt;/a&gt;"
  
  but it's not redirect to facebook because in code mention : "window.location = "https://www.google.com";"</code></pre>
  </div>
  </div>
  </p>
  
  <p>how can i make a redirect page with timer in blogger and rediect all external links in post with html code?</p>