[thelist] how to disable the return key in web forms?

Scott Brady evolt at scottbrady.net
Thu Oct 30 09:14:05 CST 2003

> Does anyone know how to change the behaviour of the return/enter key depending on where abouts in the form the focus is?
> Do people think javascript would sort this out?

You could do it with Javascript.  The question to ask, though, is if you really want to do this.  It breaks expected browser behavior.  And, those users who know how a browser is supposed to be function aren't going to be happy when hitting "Enter" doesn't perform the expected behavior of submitting the form.

But, sure, if you really want to do this, you could do it with javascript, but I'm not certain what the browser compatibility issues are. (Our big intranet project does this, but we have complete control over the browser being used.)


Scott Brady

More information about the thelist mailing list