Tuesday, August 27, 2019

How to redirect one web page another web page after 5 second using javascript


Use the following code in your page header

<script type="text/javascript"> 
     window.onload = function(){setTimeout("location.href='page1.html'", 5000);}
    </script> 

Featured Post

What is JavaScript? What is the role of JavaScript engine?

  The JavaScript is a Programming language that is used for converting static web pages to interactive and dynamic web pages. A JavaScript e...