I tried using this but did not work:
$(document).ready(function(){
$("#restartBtn").click(function(){
location.reload();
});
});
This is my code:
<canvas id="canvas" width="1125" height="2436" class="" style="width: 375px; height: 812px;"></canvas>
<img id="restartBtn" src="./images/btn_restart.svg" style="display: inline;">
Can we add link on that restart button?