Important: As of Firefox 52, the methods defined in this mixin have been moved to the WindowOrWorkerGlobalScope
mixin, and other browsers will follow suit. Look to that page for up-to-date details.
WindowTimers
is a mixin used to provide utility methods which set and clear timers. No objects of this type exist; instead, its methods are available on Window
for the standard browsing scope, or on WorkerGlobalScope
for workers.
This interface neither inherits nor provides any properties.
This interface does not inherit any methods. It offers the following methods.
WindowTimers.clearInterval()
WindowTimers.setInterval()
.WindowTimers.clearTimeout()
WindowTimers.setTimeout()
.WindowTimers.setInterval()
WindowTimers.setTimeout()
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'WindowTimers' in that specification. | Living Standard | No change since the latest snapshot, HTML5.1. |
HTML5.1 The definition of 'WindowTimers' in that specification. | Recommendation | Snapshot of WHATWG HTML Living Standard. No change. |
HTML5 The definition of 'WindowTimers' in that specification. | Recommendation | Snapshot of WHATWG HTML Living Standard. Creation of WindowBase64 (properties where on the target before it). |
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) |
Window
, WorkerGlobalScope
, DedicatedWorkerGlobalScope
, SharedWorkerGlobalScope
, and ServiceWorkerGlobalScope
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers