As in this question, my HTML looks like this:
<body id="body" onload="loader()"> </body>
I always assume that this document says there are no arguments in onload. However, I called this argument and did a deep check, and found that I have an object similar to this:
{originalTarget : DOM, preventCapture : function, target : DOM, cancelable : Bool, currentTarget : DOM, timeStamp : Int, bubbles : Bool, type : String, eventPhase : Int, preventDefault : function, initEvent : function, stopPropagation : function, CAPTURING_PHASE : Int, AT_TARGET : Int, BUBBLING_PHASE : Int, explicitOriginalTarget : DOM, preventBubble : function, isTrusted : Bool, MOUSEDOWN : Int, MOUSEUP : Int, MOUSEOVER : Int, //... (more constants) }
Does anyone know what it is, or what could be its class name?
javascript dom browser firefox events
Claudiu
source share