[thelist] Can't submit form data with 'enter' key in IE

Jim Davis jim4realty at gmail.com
Tue Mar 7 14:59:23 CST 2006


Peter,

Thanks for the reply. I'm not sure what you mean by "encapsulate". I
inserted:
<onkeydown="if(window.event.keyCode==13){document.forms[0].submit();}">
just after <body> but no joy.

Jim

On 3/7/06, EasyListBox.com Peter Brunone <peter at easylistbox.com> wrote:
>
> It should be doing that by default, or so I thought... if not, you can add
> the following to your body element (or any sub-element therein):
>
> onkeydown="if(window.event.keyCode==13){document.forms[0].submit();}"
>
> Of course you'd probably want to encapsulate this to avoid errors in
> Mozilla, which uses event.which instead of event.keyCode.
>
> HTH,
>
> Peter
>
>
>



More information about the thelist mailing list