W3C home > Mailing lists > Public > www-html@w3.org > September 2001

Re: Default Submit Button

From: Clover Andrew <aclover@1value.com>
Date: Mon, 10 Sep 2001 12:19:58 +0200
Message-ID: <D58B0195B58937489E89124469E57CA20D3C2E@EX1.1value.com>
To: <www-html@w3.org>
Clark C . Evans <cce@clarkevans.com> wrote:

> How do I specify that a particular button is
> the default submit button?

You can't, because HTML has no concept of a 'default submit button'.
This is specifically an Internet Explorer problem.

To get around the problem you could use hidden or dummy submit/image
form controls to 'swallow' the enter-submission (which could then be
routed to a different button using JavaScript).

For more about this irritating issue, see
http://ppewww.ph.gla.ac.uk/~flavell/www/formquestion.html .

-- 
Andrew Clover
Technical Consultant
1VALUE.com AG
Received on Monday, 10 September 2001 06:23:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:49 GMT