Search code examples
javascriptbuttonevent-handling

How to click a browser button with JavaScript automatically?


How to click a button every second using JavaScript?


Solution

  • setInterval(function () {document.getElementById("myButtonId").click();}, 1000);