Home » jQuery

jQuery: SetTimeout

25 January 2010 2,386 views Popularity: 5% 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. Using jQuery & AJAX: Populate Selection List
  4. Magento jQuery: How to use them together?
  5. jQuery: Print array and object
  6. Simple and easy jQuery tabs with AJAX and PHP
  7. Multiple file upload with jQuery and php
  8. jQuery: How to replace string, div content and image src?
  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