Jump to content

Enter/Return Key function


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...