OK, so I have a form.  It's as straightforward as you can get (below). 
It has no  buttons (nevermind a submit button)!  But when I hit *enter*, 
when my cursor is in the field, it submits, but only when there is one 
visible field on the page (if there is a hidden one, and a visible one, 
as below, it submits!)

If I take out the hidden field, it still submits.  If I add another 
visible field, it will *not* submit when I hit enter.  Is it possible 
that I've been doing web dev for so many years and have never noticed 
this???

Is this a bug?  Is this the intended behavior?  It happens in both 
browsers.  Help!!  I really don't want to override the onkeypress of the 
enter key to get rid of this...

The form is below, and you can get to three versions of the page here:

http://www.coldturtle.com/test/FormSubmitOnEnter.html
http://www.coldturtle.com/test/FormSubmitOnEnterOneField.html
http://www.coldturtle.com/test/FormSubmitTwoFields.html

<html>
<head>
  <title>Untitled</title>
</head>

<body>

<form name="frmForm" action="somepagethatdoesntexist.html" method="post">
<input type="text" name="anything">
<input type="hidden" name="anything2">

</form>


</body>
</html>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:5:152394
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to