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: Grey out background and preview image as popup
- jQuery: Set time interval between events with queue function
- Using jQuery & AJAX: Populate Selection List
- jQuery: Print array and object
- jQuery: A simple Slideshow
- Simple and easy jQuery tabs with AJAX and PHP
- jQuery: Preview Image with Tooltip Effect
- jQuery: Preview Image with Zoom Effect
- jQuery: Animate and Transfer effect with Image
- jQuery: Cool Bouncing Navigation with easing plugin
