>>If that's the case (for your first question), then may be you can detect an object from which the Enter came from? E.g. if you can detect that the current focused control is a drop down and don't do anything in this case?
>
>The current object is a textbox but the browser has a built in mechanism which shows on top on it a dropdown list to ease the selection of a pre-entered value, in case the user would like to enter something he already did. The problem is at the form level. There is no way a form onkeypress should grab that key.
Are you implementing auto-complete yourself or it's a browser somehow implements it for you?
In any case, I think I can not help you with your problem being an amateur in java script myself.
If it's not broken, fix it until it is.
My Blog