# JavaScript API

> Control the DS Server Document Editor with the TXTextControl object and the Document Viewer with TXDocumentViewer: scripts, init settings, events and reference.

- **Product:** DS Server
- **Section:** Documentation
- **Kind:** Topic
- **Path:** DS Server > API Reference > JavaScript API
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript-api/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript-api/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript-api/llms-full.txt

---

## On This Page

- [The Two APIs](https://docs.textcontrol.com/ds-server/reference/javascript-api/#the-two-apis)
- [How DS Server Connects the Objects](https://docs.textcontrol.com/ds-server/reference/javascript-api/#how-ds-server-connects-the-objects)
- [How the Reference Is Organized](https://docs.textcontrol.com/ds-server/reference/javascript-api/#how-the-reference-is-organized)
- [Find the Right Page](https://docs.textcontrol.com/ds-server/reference/javascript-api/#find-the-right-page)
- [Pages in This Section](https://docs.textcontrol.com/ds-server/reference/javascript-api/#pages-in-this-section)

---

## Nearby

- **Previous:** [TXTextControl.DocumentServices.Plugin.Abstractions](https://docs.textcontrol.com/ds-server/reference/dotnet-api/txtextcontrol-documentservices-plugin-abstractions/llms.txt)
- **Next:** [JavaScript API](https://docs.textcontrol.com/ds-server/reference/javascript/llms.txt)
