Home » jQuery

jQuery: SetTimeout

25 January 2010 1,102 views No Comment Popularity: 12% Share/Bookmark

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:

  1. jQuery: Set time interval between events with queue function
  2. jQuery: A simple Slideshow
  3. jQuery: Grey out background and preview image as popup
  4. jQuery: Print array and object
  5. Simple and easy jQuery tabs with AJAX and PHP

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.