Bladephp: Now with 8+ codeigniter, php, and laravel project 8+ php project From $37/Month From Rs. 2499/Month

How to wait 5 seconds with jQuery?

by
Category:javascript
javascript jquery
How to wait 5 seconds with jQuery?

If you want to delay your jQuery code to run after some amount of time, you can use JavaScript setTimeout function to delay the execution. setTimeout is used in JavaScript to delay execution of some code and the same function can be use with jQuery without any extra effort.

setTimeout(function(){
    window.location = "welcome.php";
}, 2000);

0 Comments


Html code work in comment box


Related Post