crop_rotate
Run
<!DOCTYPE html> <html> <body> <h1>JavaScript setTimeout Method</h1> <p>after click the setTimeout method will start execute</p> <button id="btn">Start</button> <script> let btn = document.getElementById('btn'); function start() { alert('CloseTag'); } btn.addEventListener('click',()=>{ setTimeout(start, 3000) }); </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KPGgxPkphdmFTY3JpcHQgc2V0VGltZW91dCBNZXRob2Q8L2gxPg0KPHA+YWZ0ZXIgY2xpY2sgdGhlIHNldFRpbWVvdXQgIG1ldGhvZCB3aWxsIHN0YXJ0IGV4ZWN1dGU8L3A+DQo8YnV0dG9uIGlkPSJidG4iPlN0YXJ0PC9idXR0b24+DQoNCjxzY3JpcHQ+DQpsZXQgYnRuID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2J0bicpOw0KDQpmdW5jdGlvbiBzdGFydCgpIHsNCiAgYWxlcnQoJ0Nsb3NlVGFnJyk7DQp9DQoNCmJ0bi5hZGRFdmVudExpc3RlbmVyKCdjbGljaycsKCk9PnsNCiAgc2V0VGltZW91dChzdGFydCwgMzAwMCkNCn0pOw0KPC9zY3JpcHQ+DQoNCjwvYm9keT4NCjwvaHRtbD4=