# Class: BaseEvent

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/events/Event~BaseEvent

Stripped down implementation of the W3C DOM Level 2 Event interface. See https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-interface.

This implementation only provides `type` and `target` properties, and `stopPropagation` and `preventDefault` methods. It is meant as base class for higher level events defined in the library, and works with `Target`.

### Subclasses

- CollectionEvent
- GeolocationError
- MapEvent
- ObjectEvent
- SnapEvent
- DragAndDropEvent
- DragBoxEvent
- DrawEvent
- ExtentEvent
- ModifyEvent
- SelectEvent
- TranslateEvent
- GroupEvent
- RenderEvent
- ImageSourceEvent
- RasterSourceEvent
- TileSourceEvent
- VectorSourceEvent

### Members

#### target{Object}

  The event target.

#### type{string}

  The event type.

### Methods

#### preventDefault()

events/Event.js, line 50

  Prevent default. This means that no emulated `click`, `singleclick` or `doubleclick` events will be fired.

#### stopPropagation()

events/Event.js, line 58

  Stop event propagation.

### Events

#### change

events/EventType.js, line 10

  Generic change event. Triggered when the revision counter is increased.

#### error

events/EventType.js, line 17

  Generic error event. Triggered when an error occurs.