tags:

views:

24

answers:

3

Is there a quick way in javascript to select the element that called the function on an event such as onmouseover or onclick or do i have to use standard document selection in the method to select the element.

A: 

If I understand your question right then you should be able to use the "this" keyword.

Paulie Waulie
+1  A: 

check out this?

Ben
+1  A: 

this

element.onclick = function (e) {
    // this == element
}
Casey Hope