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',()=>{ let time = setTimeout(start, 3000) alert(time) }); </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KPGgxPkphdmFTY3JpcHQgc2V0VGltZW91dCBNZXRob2Q8L2gxPg0KPHA+YWZ0ZXIgY2xpY2sgdGhlIHNldFRpbWVvdXQgIG1ldGhvZCB3aWxsIHN0YXJ0IGV4ZWN1dGU8L3A+DQo8YnV0dG9uIGlkPSJidG4iPlN0YXJ0PC9idXR0b24+DQoNCjxzY3JpcHQ+DQpsZXQgYnRuID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2J0bicpOw0KDQpmdW5jdGlvbiBzdGFydCgpIHsNCiAgYWxlcnQoJ0Nsb3NlVGFnJyk7DQp9DQoNCmJ0bi5hZGRFdmVudExpc3RlbmVyKCdjbGljaycsKCk9PnsNCiAgbGV0IHRpbWUgPSBzZXRUaW1lb3V0KHN0YXJ0LCAzMDAwKQ0KICBhbGVydCh0aW1lKQ0KfSk7DQo8L3NjcmlwdD4NCg0KPC9ib2R5Pg0KPC9odG1sPg==