Thread
:
JavaScript Timing Events
View Single Post
#
1
10-30-2009, 06:53 PM
welcomewiki
Member
Join Date: Dec 2008
Location: India
Posts: 80,566
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
function timedMsg ( )
{
var t= setTimeout ("alert ( '5 seconds!') ", 5000)
}
Similar Threads:
Star Plus extends Bidaai and Yeh Rishta timing..
What Are The Events In ALV
Events Related to Reporting
JavaScript Timing Events
JavaScript Events
welcomewiki
View Public Profile
Send a private message to welcomewiki
Visit welcomewiki's homepage!
Find all posts by welcomewiki