jQuery: SetTimeout
It is very easy to execute some code after a specified time-interval, i.e. setting some time interval between the code. We can use the setTimeout function.
Here is the code:
setTimeout(function(){
alert("hello");
}, 1000);
The basic structure is setTimeout(function, time in ms)
Cheers,
From Mukesh Chapagain's Blog, post jQuery: SetTimeout
Related posts:
- jQuery: Set time interval between events with queue function
- jQuery: A simple Slideshow
- Using jQuery & AJAX: Populate Selection List
- Magento jQuery: How to use them together?
- jQuery: Print array and object
- Simple and easy jQuery tabs with AJAX and PHP
- Multiple file upload with jQuery and php
- jQuery: How to replace string, div content and image src?
- jQuery: Animate and Transfer effect with Image
- jQuery: Cool Bouncing Navigation with easing plugin
