Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at


WindowTimers contains utility methods to set and clear timers.

There is no object of this type, though the context object, either the Window for regular browsing scope, or the WorkerGlobalScope  for workers, implements it.


This interface does not define any property, nor inherit any.


This interface does not inherit any method.

Cancels the repeated execution set using WindowTimers.setInterval().
Cancels the delayed execution set using WindowTimers.setTimeout().
Schedules the execution of a function each X milliseconds.
Sets a delay for executing a function.


Specification Status Comment
WHATWG HTML Living Standard
The definition of 'WindowTimers' in that specification.
Living Standard No change since the latest snapshot, HTML5.1.
The definition of 'WindowTimers' in that specification.
Working Draft Snapshot of WHATWG HTML Living Standard. No change.
The definition of 'WindowTimers' in that specification.
Recommendation Snapshot of WHATWG HTML Living Standard. Creation of WindowBase64 (properties where on the target before it).

Browser compatibility

Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support 1.0 (1.7 or earlier) 1.0 4.0 4.0 1.0
Feature Firefox Mobile (Gecko) Android IE Mobile Opera Mobile Safari Mobile
Basic support 1.0 (1) (Yes) (Yes) (Yes) (Yes)


See also

Document Tags and Contributors

 Contributors to this page: aragacalledpat, yursha, teoli
 Last updated by: aragacalledpat,