[Solved] Javascript ‘OnClick’ and HTML Not Working When Used Together


This works for me:

 <a id="nextButt" onclick="performNextAction()" class="next round">&#8250;</a>

<script>
function performNextAction(){
      alert("You clicked Next Button in Javascript");
      window.location.href = "#";
}
</script>

2

solved Javascript ‘OnClick’ and HTML Not Working When Used Together