javascript disable enter key in textbox





I want to disable the enter key, so that if the user hits enter nothing will happen.Hello, If I enter a in the textbox and hit on enter key without coming out of the that textbox ( not by hitting submit button page ), the execution goes to JavaScript method and start validating mandatory fields in the page . Related Messages: disable textbox control in code behind via css file. how to disable resize feature in popwindow. iframe and form select disable. Detect if javascript is enabled or disabled? The following code disables the enter key so that visitors of your web page can only use the tab key to get to the next field.

Copyright © 2018.