# EventCallback Function

> Callback function for events which do not have event arguments. (see also TXTextControl.addEventListener function)

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Function
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > EventCallback Function
- **186 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/eventcallback/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/eventcallback/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/eventcallback/llms-full.txt

---

### Description

Callback function for events which do not have event arguments. (see also [TXTextControl.addEventListener function](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/addeventlistener-method/llms-full.txt))

### Syntax

```javascript
function()
```

### Examples

The following example demonstrates `EventCallback` in a practical document-editing workflow. Callback function for events which do not have event arguments. (see also TXTextControl.addEventListener function).

```javascript
function eventCallback() {
    console.log("The asynchronous editor operation completed.");
}
```

---

## Nearby

- **Previous:** [ErrorCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/errorcallback/llms-full.txt)
- **Next:** [FileDroppedCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/filedroppedcallback/llms-full.txt)
