Javascript: getting element in dom tree when mouseover

Posted by oimoim on Stack Overflow See other posts from Stack Overflow or by oimoim
Published on 2010-04-25T21:11:44Z Indexed on 2010/04/25 21:13 UTC
Read the original article Hit count: 332

Filed under:
|
|
|

Hi,

When using :

document.onmouseover = function(e) {}

Is there a property which gives me the element in the dom tree ?

For example, I can set a style to e.srcElement But, how can I later access this element to (for example) reset its style ? And how can I know at which place in the dom tree it is ? I want to be able to situate it in the whole page dump.

Many thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom