[whatwg] Comments to Web Forms 2.0 downloaded 2004-09-18 (HTML email)
ian at hixie.ch
Wed Dec 8 15:40:51 PST 2004
On Sun, 21 Nov 2004, Mattias Waldau wrote:
> I tried using event listeners, but I had to add them to EVERY control on
> the form, which is plain stupid. Is there a better way?
You can attach a single key event handler to a common ancestor element
(such as the <body> or the <form>), since those events bubble. That should
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg