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