Restart button won't work - HTML & Javascript

asthegreat

New Member
I'm trying to restart the game by pressing the button but nothing happens.So far I've tried with:\[code\]<input id="clicky" type="button" value="http://stackoverflow.com/questions/15599135/Restart"/>or<input id="clicky" type="button" value="http://stackoverflow.com/questions/15599135/Restart" onclick="restart()"/>or$('#clicky').click(function(){ restart();});\[/code\]but none will work.Every time i press restart now i get round to increase to 1, 3, 7, 15, 31 etc. and my correct/incorrect alerts spam as much as the value of round+1. I can't wrap my head around what's going on, I'm lost.Here's the game: http://jsfiddle.net/94jerdaw/AuJra/
 
Back
Top