Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

WindowTimers

Sukarelawan kami masih belum menterjemah artikel ini ke Melayu lagi. Sertai kami dan bantu melaksanakannya!

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.

Properties

This interface neither inherits nor provides any properties.

Methods

This interface does not inherit any methods. It offers the following methods.

WindowTimers.clearInterval()
Cancels the repeated execution set using WindowTimers.setInterval().
WindowTimers.clearTimeout()
Cancels the delayed execution set using WindowTimers.setTimeout().
WindowTimers.setInterval()
Schedules a function to execute every time a given number of milliseconds elapses.
WindowTimers.setTimeout()
Schedules a function to execute in a given amount of time.

Specifications

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.
Working Draft 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).

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

Tag Dokumen dan Penyumbang

 Penyumbang untuk halaman ini: Sheppy, aragacalledpat, yursha, teoli
 Terakhir dikemaskini oleh: Sheppy,