Canvas game not updating score?
<p>Hello I have made a snake game and all it good except I want to update a textfield if the score is higher than the previous score when they die, eventually I will make a top 10 list etc.</p>

<p>the code I have is: </p>

<pre><code>score2 = document.getElementsByName('updateScore').value;
if(score &gt; score2)
{
document.getElementById('updateScore').innerHTML = score;
 }
</code></pre>

<p>This gets called in the init method before the score is reset for the net game when they die</p>

<p>you can view game and source here:
<a href="http://www.taffatech.com/Snake.html" rel="nofollow">http://www.taffatech.com/Snake.html</a></p>
