This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

clearImmediate

Summary

Cancels a function request created with setImmediate.

Method of dom/Windowdom/Window

Syntax

 window.clearImmediate(/* see parameter list */);

Parameters

handle

Data-type
Number

A handle to an immediate callback request, which is the value returned by setImmediate.

Return Value

No return value

Examples

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

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

Notes

Remarks

Syntax

Standards information

Attributions