View Full Version : Detect Element ID onClick

03-08-2006, 09:42 AM

:confused: I'm having serious difficulty with the following script concept:

(Element: DIV / Textbox)

I need a script that detects an element's ID during an onClick or onMouseover and passes it to a unique variable.
Ideally, the script should be an external / global script and not be embedded within the element (all elements will be assigned an ID) - (The Onclick/Mouseover event can be called from the element).

Your help will be greatly appreciated!!

Thanks in advance,

03-08-2006, 04:03 PM
Please don't double post. As this is your first time with us, this was probably an honest mistake. My main reason for replying here is to redirect others who may wish to join the discussion to please use the 'active thread (http://www.dynamicdrive.com/forums/showthread.php?t=8167)', hopefully avoiding some confusion.

admin - if no relevant replies found here, please delete this thread.