Well, that was easy. I read a few things about evt.target but I didn't really get it... Thanks. It works now.
--- In [email protected], Bjoern Hoehrmann <[EMAIL PROTECTED]> wrote: > > * sirlemmingviii wrote: > >I'm being driven up the wall here trying to script something using the > >"srcElement" property of an event. Everything I read about > >javascript/ecmascript in general says I should be able to use > >something along the lines of "event.srcElement.id" to grab the id of > >whichever element caused the event. But whenever I do try to give > >srcElement a property such as "id" or "type" or "src" or just about > >anything, I get a "null or not an object" error. > > You are looking for event.target; event.srcElement is not part of the > DOM Events standard, see <http://www.w3.org/TR/DOM-Level-2-Events/>. > -- > Björn Höhrmann · mailto:[EMAIL PROTECTED] · http://bjoern.hoehrmann.de > Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de > 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ > ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

