+ 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 ответов
+ 10
var restart = confirm("Restart the game?");
if (restart)
doSomething;
else
doNothing;
+ 7
thanks !