So I have a scoreboard for a game I am making, if you press a button you get one point, this is the scoreboard. But I want to have it so that if you reach 10 points, you are taken to an other html, a victory screen.
This is my JS + HTML
<script type="text/javascript">
var clicks1 = 0;
function updateClickCount1(){
document.getElementById("clickCount1").innerHTML = clicks1;
}
</script>
<button type="button" onclick='clicks1++;updateClickCount1()' id="push"> Score +1 </button>
<div id="clickCount1">0</div>
</div>