# FootnoteCallback Function

> Callback function for events related to a footnote. (see also TXTextControl.addEventListener function)

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

---

### Description

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

### Syntax

```javascript
function(<FootnoteEventArgs> footnote)
```

### Examples

The following example demonstrates `FootnoteCallback` in a practical document-editing workflow. Callback function for events related to a footnote. (see also TXTextControl.addEventListener function).

```javascript
function footnoteCallback(footnote) {
    console.log("footnote:", footnote);
}
```

---

## Nearby

- **Previous:** [Javascript: Footnote.setName Method](https://docs.textcontrol.com/ds-server/reference/javascript/footnote/setname-method/llms-full.txt)
- **Next:** [FootnoteCallbackData Object](https://docs.textcontrol.com/ds-server/reference/javascript/footnotecallbackdata/llms-full.txt)
