I want to pass on an element, identify what kind of element it is. I'm doing the following example:
window.onmouseover = function(){ mouseOver(e)};
function mouseOver(e) {
if (e.nodeName === "DIV"){
alert("it's a div");
}
}
example: link