+ 6
Javascript restart prog
I do a little program in Javascript. I wanted to do a prompt wich ask if yes or not restart the prog. how can I do ? Thanks :)
2 odpowiedzi
+ 10
var restart = confirm("Restart the game?");
if (restart)
doSomething;
else
doNothing;
+ 7
thanks !