Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript stop delay

function example(){
	console.log("this is an example"); 
}

let functionID = setTimeout(example, 100); //the delay time is set to 100ms
clearTimeout(functionID); //cancel the setTimeout()
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #stop #delay
ADD COMMENT
Topic
Name
5+2 =