Feedback on: irt.org FAQ Knowledge Base Q27
Worth:
Worth reading
Length:
Just right
Technical:
Not technical enough
Comments:
this doesn't seem to answer the question that's asked... neither of the two forms in the example has more than one text field!
Worth:
Not worth reading
Comments:
I don't think the answer you give is really the answer to the question. The question is how to get the enter key to submit the form when there is more than one text field - the question this answers is how to make sure all of the fields are filled in before submitting the form.
Bummer, as I wanted the answer to the first question!
Worth:
Worth reading
Comments:
It doesn't work in NN when the fields are inside a table.
Regards,
Jesus
Worth:
Very worth reading
Technical:
Not technical enough
Comments:
Try this JavaScript:
document.onkeydown=checkKeys;
if (navigator.appName == 'Netscape')
document.captureEvents(Event.KEYDOWN);
function checkKeys(e)
{
if (navigator.appName == 'Netscape')
theKey = e.which;
else
theKey = window.event.keyCode;
if (theKey == 13)
{
document.YOURFORMNAME.submit();
return false;
}
}