Firefox Toolbar XPI Tutorial
Code Collected and Organised By:-
Shashank Kandhawe
mailto: kandhawe1@gmail.com
Thursday, February 17, 2011
Waiting Function to be used
function waitingFunction(m)
{
try
{
var snooze = new Date(new Date().getTime() + m);
while (new Date() < snooze){ }
}catch (ee){alert(ee.message);}
}
To execute this function call like this: waitingFunction(1000), here 1000 is milliseconds.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment