W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2005

[whatwg] default action/button for forms

From: Michael Gratton <michael@quuxo.com>
Date: Sun, 13 Feb 2005 12:25:15 +1030
Message-ID: <1108259715.20772.61.camel@wintermute>
On Fri, 2005-02-11 at 11:52 -0500, Matthew Raymond wrote:
> 
>     I'd prefer something like this:
> 
> | <form action="http://somesite.com/prog/adduser" method="post">
> |   <input type="text" name="who">
> |   <input type="submit" name="action" value="Remove">
> |   <input default type="submit" name="action" value="Add">
> | </form>

Sounds reasonable, it does allow some ambiguity however (what happens if
there a multiple defaults in one form?) and the default button to my
mind seems more like a property of the form then a control.

But hey, I'd be happy with either.

/Mike

-- 
Michael Gratton, Software Architect.
Quuxo Software <http://web.quuxo.com/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20050213/2764b123/attachment.pgp>
Received on Saturday, 12 February 2005 17:55:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:21 UTC