+ 1

How to reload webpage using JavaScript?

Can someone help me how to reload my webpage using JS? After the you win or loss the game, I want to reload it. https://code.sololearn.com/WHn35M6Q1OiN/?ref=app

8th May 2018, 11:33 AM
Alquen
Alquen - avatar
2 odpowiedzi
+ 3
<input type="button" onClick="reload()" value="reload"/> <script> function reload(){ location.reload(); } </script>
8th May 2018, 11:57 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
I don't what's happening but it goes to my browser.
8th May 2018, 12:18 PM
Alquen
Alquen - avatar