Apologies in advance for a stupid question that so far has resisted "googling."
I wish to know the "Id" value for a node that has been clicked. for example: <g id="mybox" onclick="printData(evt)"> <polygon points="4,0 0,0 0,4 4,0" /> <g> where the javascript section would look like elementdata["mybox"] = "Long winded description number 1"; elementdata["yourbox"] = "Another description. Yea!"; function printData(evt) { var element = evt.target; var idvalue = ????????? // dom method? alert(elementdata[idvalue]); } I know that element is the object, but I need to tie to some data outside the element's attributes that is indexed by the Id, in this case "mybox". so I want the alert box to display "Long winded description number 1" when the "mybox" svg object is clicked. But I don't know a way to set the idvalue variable to the id of the <g>. Thanks for your help! Todd ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- 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/ <*> 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/