Platform Support
IE | Mozilla | Netscape | Opera | Safari | 4.0+ | 1.0+ | 4.0+ | 7.0+ | 1.0+ |
---|
Constructors
Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
---|---|---|---|---|---|---|---|---|
Event Constructor() : Event
Provides information about an event.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 7.0+ | 1.0+ | ||
Event() : EventProvides information about an event. Returns
|
Properties
Property | Action | IE | Mozilla | Netscape | Opera | Safari |
---|---|---|---|---|---|---|
Specifies the Abstract content of the entry banner for an ASX file.
|
No Details | 6.0+ | no | no | no | no |
|
||||||
altKey
: Boolean
If true, the ALT key is currently being pressed.
|
Show Details | 6.0+ | 1.75+ | no | no | 1.2+ |
|
||||||
altLeft
: Boolean
If true, the left ALT key is currently being pressed.
|
Show Details | 6.0+ | no | no | no | no |
|
||||||
Specifies the Banner content of the entry for an ASX file.
|
No Details | 6.0+ | no | no | no | no |
|
||||||
bubbles
: Boolean
Specify true if the event type bubbles. Otherwise, false.
|
Show Details | no | 1.0+ | 4.0+ | 7.0+ | 1.0+ |
|
||||||
Specifies the mouse button that was clicked. Valid values are 0 = No button pressed. 1 = Left button pressed. 2 = Right button
pressed. 3 = Left and right buttons both pressed. 4 = Middle button pressed. 5 = Left and middle buttons pressed. 6 = Right
and middle buttons are both pressed. 7 = All three buttons pressed.
|
No Details | 5.0+ | no | no | no | no |
|
||||||
cancelable
: Boolean
True if the action of the event can be cancelled with the preventDefault()method. Otherwise, false.
|
Show Details | no | 1.0+ | 4.0+ | 7.0+ | 1.0+ |
|
||||||
If true, bubbling is disabled for the event.
|
No Details | 5.0+ | no | no | no | no |
|
||||||
clientX
: Number
Specifies the x-coordinate (in pixels) of the mouse relative to the client window.
|
Show Details | 4.0+ | 1.75 | no | 8.0+ | 1.2 |
|
||||||
clientY
: Number
Specifies the y-coordinate (in pixels) of the mouse relative to the client window.
|
Show Details | 4.0+ | 1.75 | no | 8.0+ | 1.2 |
|
||||||
If true, overflow content should be formatted using a new LayoutRect object.
|
No Details | 6.0+ | no | no | no | no |
|
||||||
ctrlKey
: Boolean
If true, the CTRL key is currently being pressed.
|
Show Details | 5.0+ | 1.75 | no | 8.0+ | 1.2 |
|
||||||
ctrlLeft
: Boolean
If true, the left CTRL key is currently being pressed.
|
Show Details | 6.0+ | no | no | no | no |
|
||||||
currentTarget
: EventTarget
Node of the Document that is handling the event.
|
Show Details | no | 1.0+ | 4.0+ | 7.0+ | 1.0+ |
|
||||||
Specifies the data column in the current recordset.
|
No Details | 6.0+ | no | no | no | no |
|
||||||
eventPhase
: Number
Phase that the event is currently in. See Remarks for a list of valid values.
|
Show Details | no | 1.0+ | 4.0+ | 7.0+ | 1.0+ |
|
||||||
fromElement
: Element
Specifies the element that was the previous location of the pointer or cursor.
|
Show Details | 5.0+ | no | no | 8.0+ | 1.2+ |
|
||||||
keyCode
: Number
Specifies the Unicode key code for the event..
|
Show Details | 6.0+ | 1.75+ | no | 8.0+ | 1.2+ |
|
||||||
Specifies the MoreInfo content of the entry banner for an ASX file.
|
No Details | 6.0+ | no | no | no | no |
|
||||||
Specifies position of the next page for printing. Valid values are
|
No Details | 6.0+ | no | no | no | no |
|
||||||
Specifies position of the next page for printing. Valid values are "left", "right", and "".
|
No Details | 6.0+ | no | no | no | no |
|
||||||
offsetX
: Number
Specifies the x-coordinate (in pixels) of the mouse relative to the object that is firing the event.
|
Show Details | 5.0+ | no | no | 8.0+ | 1.2+ |
|
||||||
offsetY
: Number
Specifies the y-coordinate (in pixels) of the mouse relative to the object that is firing the event.
|
Show Details | 5.0+ | no | no | 8.0+ | 1.2+ |
|
||||||
Specifies the name of the property whose value changes.
|
No Details | 5.0+ | no | no | no | no |
|
||||||
Specifies the name of the data member from the data source.
|
No Details | 5.0+ | no | no | no | no |
|
||||||
Specifies the result of a data transfer for a data source. Valid values are 0 = success, 1 = transfer aborted, 2 = error.
|
No Details | 5.0+ | no | no | no | no |
|
||||||
Specifies the result of a data transfer for a data source. Valid values are 0 = success, 1 = transfer aborted, 2 = error.
|
No Details | 5.0+ | no | no | no | no |
|
||||||
repeat
: Boolean
If true, specifies that the onkeydown event was repeated.
|
Show Details | 6.0+ | no | no | no | no |
|
||||||
If true, the value from the event is returned.
|
No Details | 6.0+ | no | no | no | no |
|
||||||
Specifies either "TEXT" or "HTML" as the clipboard type when the oncontentsave event fires.
|
No Details | 6.0+ | no | no | no | no |
|
||||||
screenX
: Number
Specifies the x-coordinate (in pixels) of the mouse relative to the screen.
|
Show Details | 5.0+ | 1.75+ | no | 8.0+ | 1.2+ |
|
||||||
screenY
: Number
Specifies the y-coordinate (in pixels) of the mouse relative to the screen.
|
Show Details | 5.0+ | 1.75+ | no | 8.0+ | 1.2+ |
|
||||||
shiftKey
: Boolean
If true, the SHIFT key is currently being pressed.
|
Show Details | 5.0+ | 1.75+ | no | 8.0+ | 1.2+ |
|
||||||
shiftLeft
: Boolean
If true, the left SHIFT key is currently being pressed.
|
Show Details | 6.0+ | no | no | no | no |
|
||||||
srcElement
: Element
Element that fired or received the event.
|
Show Details | 5.0+ | no | no | 8.0+ | 1.2+ |
|
||||||
Object that caused the onfilterchange event to fire.
|
No Details | 5.0+ | no | no | no | no |
|
||||||
Specifies the URN for the behavior that fired the event.
|
No Details | 5.0+ | no | no | no | no |
|
||||||
target
: EventTarget
Target node for the event.
|
Show Details | no | 1.0+ | 4.0+ | 7.0+ | 1.0+ |
|
||||||
timeStamp
: Date
Date and time that the event occurred.
|
Show Details | no | 1.75+ | no | no | 1.2+ |
|
||||||
toElement
: Element
Specifies the element that the mouse pointer is moving toward.
|
Show Details | 5.0+ | no | no | 8.0+ | 1.2+ |
|
||||||
type
: String
Type of event.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 7.0+ | 1.0+ |
|
||||||
Specifies the sFriendlyName parameter for the useService method.
|
No Details | 6.0+ | no | no | no | no |
|
||||||
Specifies distance and direction that the mouse wheel has scrolled.
|
No Details | 6.0+ | no | no | no | no |
|
||||||
x
: Number
Specifies the x-coordinate (in pixels) of the mouse relative to the parent element.
|
Show Details | 5.0+ | no | 4.0 | no | 1.3 |
|
||||||
y
: Number
Specifies the y-coordinate (in pixels) of the mouse relative to the parent element.
|
Show Details | 5.0+ | no | 4.0 | no | 1.3 |
|
Functions
Method | Action | IE | Mozilla | Netscape | Opera | Safari | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
initEvent(String eventTypeArg, Boolean canBubbleArg, Boolean cancelableArg) : void
Initializes the properties of an Event.
|
Show Details | no | 1.0+ | 4.0+ | 7.0+ | 1.0+ | |||||||||||
Parameters
Returns
|
|||||||||||||||||
preventDefault() : void
Prevents the default action for the event.
|
Show Details | no | 1.0+ | 4.0+ | 7.0+ | 1.0+ | |||||||||||
Returns
|
|||||||||||||||||
stopPropagation() : void
Stops the propagation of an event.
|
Show Details | no | 1.0+ | 4.0+ | 7.0+ | 1.0+ | |||||||||||
Returns
|
Remarks
Whenever some event occurs with the DOM, different event handlers are given the choice of
intercepting and doing something with it. The Event
object is used to provide
context that each event handler can use to get information about the event, like the originating
element, what stage the event is currently in within the event system, and so forth.
More specific events, that provide additional context information based on the type of event.
For instance, the MouseEvent
object, which inherits from Event
,
supplies additional properties supplying information such as the
Due to this, the properties and methods supported by the Event
object are rather
minimal, and supply the basic set of functionality required for all types of events.
References
EventListener|EventTarget|MouseEvent|UIEvent
Availability
HTML DOM Level 2|W3C