HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
ctrlKey
A Boolean indicating whether the Ctrl key is pressed
currentTarget
The element to which the event was assigned
eventPhase
An integer value indicating at which phase of the event flow this event is being
processed
fromElement
The element from which the mouse is leaving in a mouseover
event (IE only)
keyCode
The Unicode value of the pressed key (IE only)
layerX
The horizontal mouse coordinate of the event relative to a positioned element (simi-
lar to IE's offsetX)
layerY
The vertical mouse coordinate of the event relative to a positioned element (similar
to IE's offsetY)
metaKey
A Boolean indicating whether a meta key is pressed (not supported in IE)
offsetX
The horizontal mouse coordinate of the event relative to a positioned element (IE only)
offsetY
The vertical mouse coordinate of the event relative to a positioned element (IE only)
pageX
The horizontal mouse coordinate of the event relative to the top-left corner of the
visible page
pageY
The vertical mouse coordinate of the event relative to the top-left corner of the vis-
ible page
relatedTarget
The element that the mouse has left during a mouseover event, or the element that
the mouse has entered during a mouseout event
returnValue
A Boolean indicating whether any default action associated with the event will
occur (IE only)
screenX
The horizontal mouse coordinate of the event relative to the screen
screenY
The vertical mouse coordinate of the event relative to the screen
timestamp
The time (in milliseconds) at which the event was initiated
toElement
The element the mouse is entering in a mouseover event (IE only)
type
The type of event
Methods
preventDefault()
Cancels any default action associated with the event
stopPropagation()
Prevents the event from bubbling when set to true
EventTarget
An object that receives an event
Methods
addEventListener( type , listener ,
usecapture )
Adds the listener function as an event handler for events of type , where usecapture
is true if this is a capturing event handler
removeEventListener( type ,
listener , usecapture )
Removes the listener function as an event handler for events of type , where
usecapture is true if this is a capturing event handler
attachEvent( type , listener )
Adds the listener function as an event handler for events of type (IE only)
detachEvent( type , listener )
Removes the listener function as an event handler for events of type (IE only)
Fieldset
A field set in a Web form
Properties
disabled
A Boolean indicating whether the field set is disabled
elements
An array of form controls within the field set
Search WWH ::




Custom Search