Redirect page to a new page/url after few seconds – Javascript solution

Redirect page to a new page/url after few seconds – Javascript solution

Question:- How can we redirect a page after few seconds to a new page using javascript?
Answer :- You can easily redirect a page to another url after few seconds delay by using following javascript code.

<script type=”text/javascript”>
setTimeout(function(){window.location=”https://netgen.in”;}, 3000) //wait three seconds before continuing.

Hope this helps you with your project/tasks.