1
I developed a code in Javascript that generates a sequence of random numbers and I wanted to know if I can put a limit of 3 clicks on this button and after the 3rd click the page is updated. I’ve tried using the history.go function only it updates right when you click, not after 3 clicks
That’s the button code:
<center><button onclick="history.go(0)">Clique e gere o código</button></center>
there is some way to make history.go be called only after 3 clicks?