Skip to content
Can anyone make a functioning restart button for my platformer game: Shadow Runner
Profile icon
HenryMusic

Also, comment the code below so I can use it

You are viewing a single comment. View All
Answered by HarperframeInc [earned 5 cycles]
View Answer
Profile icon
Whacko

Two examples of restart:

  1. JavaScript
function restart() { window.location = ""; /* Reloads the tab */ }
  1. HTML
<!-- Restart Button --> <a href=""><button>Restart</button></a>

Basically, all these codes do are restart the tab, although it would work.