does anyone know how i can get the id of any element when the mouse is over ?
I want to show a div (box) over the elements (tags) the mouse is over.
I cannot modify the tags to include a mousover event. I want a global callback or something like that to have the id of the tag which is under the mouse pointer.
Thanks !
You mean you want the target of the
onmouseoverevent, so you can access the element’s properties:Take a look at Event Properties for a cross-browser way to get the target (the following example is from the aforementioned website):
So to put those together: