Hi guys
The code below will be used to fill in a crossword grid.
When a user types a letter, focus is changed to next cell in the grid.
My code doesn't work and I would be grateful if you could help me ...
The script is :
function changefocus(theevent,thetarget)
{
if (theevent > 64 && theevent < 91){cross1.thetarget.focus();}
}
Part of the HTML is :
<form name="cross1">
<input type="text" name="A1" onKeyUp="changefocus(event.keyCode,'A2');">
<input type="text" name="A2" onKeyUp="changefocus(event.keyCode,'A3');">
<input type="text" name="A3" onKeyUp="changefocus(event.keyCode,'A1');">
</form>
Thank you,