srcElement property
Gets the element that the event was originally dispatched to. Compare to target.
![]() |
Syntax
| JavaScript | |
|---|
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
- BeforeUnloadEvent
- CompositionEvent
- CustomEvent
- DragEvent
- Event
- FocusEvent
- KeyboardEvent
- MessageEvent
- MouseEvent
- MouseWheelEvent
- MSSiteModeEvent
- MutationEvent
- StorageEvent
- SVGZoomEvent
- TextEvent
- UIEvent
- target
Show:
