I'm trying to use the following function so that if a user uses an enter key in a Gecko based browser (FireFox, Netscape, etc) the form is submitted - right now the following doesn't work and I don't see why - I followed several examples I found already:
BTW - I'm calling the function in my form like this:
onKeyDown="EnterKeyDownHandler(event)" thus passing the event object.
// process only the Enter key
if ( (event.keyCode == 13) || (e.which.charCode == 13))
// cancel the default submit
event.cancel = true;
document.location.href = '/results.aspx;