I just want to stop this code after it clicks 100 times. I'm a beginning coder. I'm using the second script to work.
<form method="post" action="cashads.php" target="clk">
<input type="hidden" name="ad_new" value="145">
<input type="submit" id="clk" class="buttonN" style="background-
color:#1D03FB" value="Open Ad">
setInterval(function(){document.getElementById("clk").click();},42000);
This is second Script for stoping click after 100 times.
setTimeout(function(){ document.getElementById("clk").remove();},4200000);