Advertisement
Apina

JS timeout redirect

Aug 22nd, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. <script type="text/javascript">
  2.  
  3. setTimeout(function () {
  4. window.location.href = "/"; //will redirect to your blog page (an ex: blog.html)
  5. }, 5000); //will call the function after 5 secs.
  6.  
  7. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement