Window.clearImmediate()

This method clears the action specified by window.setImmediate.

Note: This method is currently only proposed, is not expected to become standard, and is only implemented by recent builds of Internet Explorer.

Syntax

window.clearImmediate(immediateID)

where immediateID is a ID returned by window.setImmediate.

Examples

var immediateID = setImmediate(function () {
  // Run some code
}

document.getElementById("button").addEventListener(function () {
  clearImmediate(immediateID);
}, false);

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support No ? No Yes No No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No ? ? No No No ?

See also

window.setImmediate

Specification: Efficient Script Yielding

Document Tags and Contributors

Tags: 
Contributors to this page: fscholz, kollishivagangadhar, teoli, Sheppy, McGurk
Last updated by: fscholz,