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
Mozilla Developer Network : [clearImmediate Article]
Microsoft Developer Network: [clearImmediate Method Article]