On Thu, Sep 8, 2011 at 1:56 PM, Bryan Sullivan <bls...@gmail.com> wrote:
> Thanks for the help. > > So when you say "the name of the event", how in JavaScript do I access the > name of the event, e.g. to test it? Accessing the data (event.data) works, > but how do access the name? > The type (or name) of the event is the first parameter to addEventListener. It's also available with event.type, if you use the same function for several listeners. -- Glenn Maynard