srcElement property

1 out of 1 rated this helpful - Rate this topic

Gets the element that the event was originally dispatched to. Compare to target.

Syntax

JavaScript

p = object.srcElement

Property values

Type: Object

The original event target.

Standards information

There are no standards that apply here.

Remarks

Note  The srcElement property is provided for backward compatibility. Use the target property instead.

See also

SVGZoomEvent
BeforeUnloadEvent
CompositionEvent
CustomEvent
DragEvent
Event
FocusEvent
KeyboardEvent
MessageEvent
MouseEvent
MutationEvent
StorageEvent
TextEvent
UIEvent
target

 

 

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.