Home

Non blocking.

Once.

setTimeout( function() { document.getElementById( 'once' ).innerHTML = 'Ready.'; }, 5000 );
Waiting for 5s ...

Repeated.

let i = 1; var timer = setInterval( function() { document.getElementById( 'repeated' ).innerHTML = i++; }, 50 );


clearTimeout( timer );