Go Back   Wiki NewForum > Career Forum (Documents/Tutorials/Advice) > Tech Forum & Tutorial > Java Forum & Tutorial

Java Forum & Tutorial JavaScript and Client-Side Browser Scripting

Reply
Views: 887 Source: CNN18.com, India-Forums, TellyChakkar, India, Times of India, Youtube, BollywoodLife, Rediff  
Thread Tools Rate Thread Display Modes
  #1  
Old 10-30-2009, 06:53 PM
welcomewiki welcomewiki is offline
Member
 
Join Date:
Dec 2008
Location:
India
Posts: 38,696
Default JavaScript Timing Events

With Javascript, it is possible to execute some code NOT immediately after a function is called , but after a specified time interval. This is called timing events.

It's very easy to time events in JavaScript. The two key methods that are used are:

SetTimeout( ) - executes a code some time in the future

clearTimeout( ) - cancel' s thesetTimeout( )

Note: the seTimeout( ) and clearTimeout( ) are both methods of the HTML DOM Window object.

Tutorial

When the ****on is clicked in the example below, an alert box will be displayed after 5 seconds












Ads
Reply With Quote
Reply

New topics in Java Forum & Tutorial

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump


Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
asp web stats