Yeah, kind of a pain in the butt. Here is the work around I use. It traps all key
presses, looking for the enter key and then submits the form. Keep in mind that this
works in
Netscape only since Netscape uses event.which and IE uses event.keyCode.
<script language="javascript">
function CheckForEnter(event) {
if (event.which == 13) { document.form.submit(); }
}
document.onkeydown=CheckForEnter;
</script>
Jackson
Steve Pierce wrote:
> Yep that is a Netscape feature.
>
> -----Original Message-----
> From: Birgit Pauli-Haack [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 01, 2000 5:26 PM
> To: [EMAIL PROTECTED]
> Subject: [OT] submit form with ENTER
>
> Using a login form in Netscape 4.7, I am not able to send the form
> by hitting the Enter-Key. I have to use the mouse and click on the
> send-button, which is one of these unimportant, yet annoying
> things...
>
> Is there a method in HTML, JavaScript or so to make the send-button
> ENTER-Key 'enabled'?
> It works just fine in IE..
>
> Somebody an idea? Please per PM, 'cause it's OT.
> Thanks
>
> Best regards,
> Birgit
>
> ----------------------------------------------------------------------------
> --
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> ------------------------------------------------------------------------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.