title: onClick redirect to a side after 5 sec
body: <p>How do i add to a button so after i press it. it will redirect me to a side after like 5 sec?
  I have tried so much different stuff but it is not working for me...
  It need to be a onClick function (javascript).</p>
  
  <p>HTML: </p>
  
  <pre><code>    &lt;html&gt;
  &lt;head&gt;
  
  &lt;style type="text/css"&gt;
  #save_first { display: none; }
  #save_second { display: none; }
  #save_third { display: none; }
  &lt;/style&gt;
  
  &lt;script type="text/javascript" src="http://mctheblitz.com/servers/js/jquery.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/custom.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;input type="button" value="Save" onClick="save();"/&gt;
  &lt;div id="save_first"&gt;&lt;/div&gt;&lt;div id="save_second"&gt;&lt;/div&gt;
  &lt;?php
  
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Javascipt:</p>
  
  <pre><code>function save() {
  
      $('#save_first').html('Validating...');
      $('#save_first').fadeIn(1);
      $('#save_first').delay(2000);
      $('#save_first').fadeOut(300);
      $('#save_second').html('Successfully log in!');
      $('#save_second').hide();
      $('#save_second').delay(2350);
      $('#save_second').fadeIn(0);
  }
  </code></pre>
  
  <p>Tnx for help! </p>