Window.clearImmediate

« DOM Reference

Summary

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

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support Not supported Not supported (Yes) Not supported Not supported
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support Not supported Not supported Not supported Not supported Not supported

See also

window.setImmediate

Specification: Efficient Script Yielding

Document Tags and Contributors

Contributors to this page: Sheppy, McGurk, teoli
Last updated by: teoli,
Hide Sidebar