Jump to content

Enter/Return Key function


tyv
 Share

Recommended Posts

Hi, I encountered a bug on a website that I am working on. The enter/ return key function works in certain parts of the website and doesn't work in other parts (this is opposed to actually clicking submit). I went through all the scripts but I'm not sure why the function does not work for this part. Does anyone have any suggestions/scripts that would work in this case? I am working with javascript, ASP files and html. Thanks for any help you can offer. Tyv

Link to comment
Share on other sites

Scripts don't control the enter key, the browser does that. If a form has focus and you hit enter the browser will submit the form, unless it's a textarea that has focus. If a form does not have focus I don't think pressing enter does anything.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...