---
title: "IEventListener.HandleEvent"
url: "https://reference.aspose.com/html/java/com.aspose.html.dom.events/ieventlistener/handleevent/"
product: "Aspose.HTML for Java API Reference"
description: "IEventListener method. This method is called whenever an event occurs of the type for which the interface was registered"
---

## IEventListener.HandleEvent method

This method is called whenever an event occurs of the type for which the interface was registered.

```java
public void HandleEvent(Event @event)
```

| Parameter | Type | Description |
| --- | --- | --- |
| event | Event | The contains contextual information about the event. It also contains the and methods which are used in determining the event's flow and default action. |

### See Also

* class [Event](../../event/)
* interface [IEventListener](../)
* package [com.aspose.html.dom.events](../../../com.aspose.html.dom.events/)
* package [Aspose.HTML](../../../)
