# EventCallback Function

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

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Function
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > EventCallback Function
- **190 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/eventcallback/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/eventcallback/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-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/tx-text-control-dotnet-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/tx-text-control-dotnet-server/reference/javascript/errorcallback/llms-full.txt)
- **Next:** [FileDroppedCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/filedroppedcallback/llms-full.txt)
