Powered By Blogger

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