# HyphenateWordCallback Function

> Callback function for a word-hyphenation related event. (see also TXTextControl.addEventListener function)

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

---

### Description

Callback function for a word-hyphenation related event. (see also [TXTextControl.addEventListener function](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/addeventlistener-method/llms-full.txt))

### Syntax

```javascript
function(<HyphenateWordEventArgs> args)
```

### Examples

The following example demonstrates `HyphenateWordCallback` in a practical document-editing workflow. Callback function for a word-hyphenation related event. (see also TXTextControl.addEventListener function).

```javascript
function hyphenateWordCallback(args) {
    console.log("args:", args);
}
```

---

## Nearby

- **Previous:** [Javascript: HypertextLinkEventArgs.hypertextLink Property](https://docs.textcontrol.com/ds-server/reference/javascript/hypertextlinkeventargs/hypertextlink-property/llms-full.txt)
- **Next:** [HyphenateWordEventArgs Object](https://docs.textcontrol.com/ds-server/reference/javascript/hyphenatewordeventargs/llms-full.txt)
