How to Redirect page after few second using javascript?

You can easily redirect a page to another url after few seconds delay by using following javascript code.

For this solution , Javascript provide setTimeout() function  ,, by this function we can call some javascription function after specific time.

  setTimeout(function(){ //ADD YOUR CODE }, TIME IN SECOND );

For Example: We have to redirect page after 3000 second then our code should be like :

setTimeout(function(){window.location=”http://eliseinfotech.com”;}, 3000)
Categories: Company News & Event
Strict Standards: Only variables should be passed by reference in /home/elisegxm/public_html/wp-content/themes/eliseinfotech/functions.php on line 62

Strict Standards: Only variables should be assigned by reference in /home/elisegxm/public_html/wp-content/themes/eliseinfotech/functions.php on line 62
| Comments