Window.clearImmediate()

SummaryEdit

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.

SyntaxEdit

window.clearImmediate(immediateID)

where immediateID is a ID returned by window.setImmediate.

ExamplesEdit

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

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

Browser compatibilityEdit

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

See alsoEdit

window.setImmediate

Specification: Efficient Script Yielding

Document Tags and Contributors

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