Game not redirecting back to specific page? (HTML5)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DeafSavage

I have a project on my website when a game is over, it redirects to the same game page it’s on. I want the game to be able to redirect to another page, I have already used Javascript.eval (window.location. replace("https://www.example.com")')

So what can I do in order to make sure the location always goes to the specified URL?

:bust_in_silhouette: Reply From: Becbunzen

Missing a ’ and has an extra space, use this:

Javascript.eval('window.location.replace("https://www.example.com")')