Calls a method after a specified time interval has elapsed.
obj.timeout(handler, delay);
handler | Function | Method to call. |
delay | Number | Time interval in milliseconds. |
An identifier that can be used with window.clearTimeout to cancel the current method call.
This method has the same effect as window.setTimeout except that the function will be evaluated not as a global function but as a method of the current object.