[whatwg] Comments to Web Forms 2.0 downloaded 2004-09-18 (HTML email)

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 
work fine.

HTH,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 8 December 2004 15:40:51 UTC