P
Perttu Pulkkinen
I use hit two function to stop [ENTER] from sending the form. First one I
use to move focus to the next desired field, second one to do nothing (when
there is no desired field to go).
Works in IE & Opera. How can I make these Netscape/Firefox-compatible (while
still keep them working in IE/Opera)?
function moveto(goal)
{
if(window.event && window.event.keyCode == 13)
document.getElementById(goal).focus();
return !(window.event && window.event.keyCode == 13);
}
function noenter()
{
return !(window.event && window.event.keyCode == 13);
}
use to move focus to the next desired field, second one to do nothing (when
there is no desired field to go).
Works in IE & Opera. How can I make these Netscape/Firefox-compatible (while
still keep them working in IE/Opera)?
function moveto(goal)
{
if(window.event && window.event.keyCode == 13)
document.getElementById(goal).focus();
return !(window.event && window.event.keyCode == 13);
}
function noenter()
{
return !(window.event && window.event.keyCode == 13);
}