[Solved] Action on clicking a button 10 times in a webpage [closed]

[ad_1]

You may try this

var count = 1;
function myFunction() {
  if (count<10) {
    count++;
  }
  else {
    window.location = "your-target-page.html";
  }
};
<html>
<body>
  <button onclick="myFunction()">Click me 10 times</button>
</body>
</html>

0

[ad_2]

solved Action on clicking a button 10 times in a webpage [closed]