HTML and CSS Reference
In-Depth Information
event occurred can be found in the currentTarget property (Firefox) or the srcElement
property (Internet Explorer).
Table 15.8 Event Properties: DOM and Internet Explorer
Name
What It Describes
bubbles
Boolean to test whether an event can bubble up the document tree.
canceleable
Boolean to test whether the event can be cancelled.
currentTarget
The node currently being processed by a handler (Internet Explorer
doesn't support this).
eventPhase
A number specifying the phase of the event propagation.
fromElement
Refers to the object where the mouse was pointing before the
mouseover event was triggered (Internet Explorer).
srcElement
Refers to the object of the tag that caused the event to fire (Internet
Explorer).
target
The node on which the event occurred, not necessarily the same as
currentTarget.
timeStamp
When the event occurred (a Date object).
type
The type of the event that occurred, such as click or mouseOut.
EXAMPLE 15.24
/* File: externstyle.css */
body { background-color: silver;
font-size: 22pt;
font-weight: bold;
}
.red { color:rgb(255,0,0); /* Defining classes */
font-style: verdana;
font-size: 32;
}
.blue { color:blue;
font-style: verdana;
font-size: 36;
}
.green { color: green;
font-style: verdana;
font-size: 40;
}
Continues
 
Search WWH ::




Custom Search