Home » jQuery

jQuery: SetTimeout

25 January 2010 2,373 views Popularity: 5% Share/Bookmark

email

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,

Related posts:

  1. jQuery: Grey out background and preview image as popup
  2. jQuery: Set time interval between events with queue function
  3. Using jQuery & AJAX: Populate Selection List
  4. jQuery: Print array and object
  5. jQuery: A simple Slideshow
  6. Simple and easy jQuery tabs with AJAX and PHP
  7. jQuery: Preview Image with Tooltip Effect
  8. jQuery: Preview Image with Zoom Effect
  9. jQuery: Animate and Transfer effect with Image
  10. jQuery: Cool Bouncing Navigation with easing plugin
  • Sandesh Daddi

    This is Javascript’s own function and not a jquery’s function….thankssandesh daddi