I want to respond to the user hitting the enter key, which I can do, however I dont want to respond to the event when the user hits the enter key and the focus is on the address bar. I can not figure out how to prevent my key event handler from executing when the focus is in the address bar.
Note: The page refreshes, but my handler is called first.
Please dont tell me not to do the action when the focus is in the address bar, I know that, tell me how to check that the focus is not in the address bar, thanks
OK, i got it, it the keyup event, not keydown, thats causing this, thanks for the help