Previous Message
Next Message

submitting forms via Enter

Sent by Zoe M. Gillenwater on 21 September 2005 14:02


David Feldman wrote:

> The problem is getting the Enter key to submit the form when the  
> cursor is in one of its fields. In Firefox it's easy: I just add a  
> submit <input> or <button> and hide it with CSS. But IE doesn't like  
> that...if the button is hidden the form won't submit. The best I've  
> been able to do is leave the button visible and move it way  
> offscreen, i.e. position:absolute; top:-2000px; left:-2000px. But  
> that's ugly. Any suggestions for a better way?


Dave,

If moving the button off screen works, use it.  Why do you think it's 
any uglier than hiding it with display: none?

Zoe

-- 
Zoe M. Gillenwater
Design Specialist
UNC Highway Safety Research Center
http://www.hsrc.unc.edu

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: