# Javascript: TableOfContentsInfo.hasLinks Property

> Specifies whether each entry in the table of contents is a DocumentLink with a corresponding DocumentTarget.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TableOfContentsInfo.hasLinks Property
- **182 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/haslinks-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/haslinks-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/haslinks-property/llms-full.txt

---

### Description

Specifies whether each entry in the table of contents is a DocumentLink with a corresponding DocumentTarget.

### Syntax

```javascript
<boolean> TableOfContentsInfo.hasLinks
```

### Examples

The following example demonstrates `TableOfContentsInfo.hasLinks` in a practical document-editing workflow. It specifies whether each entry in the table of contents is a DocumentLink with a corresponding DocumentTarget.

```javascript
function inspectHasLinks(tableOfContentsInfo) {
    const hasLinks = tableOfContentsInfo.hasLinks;
    console.log("has links:", hasLinks);
}
```

---

## Nearby

- **Previous:** [TableOfContentsInfo Object](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/llms-full.txt)
- **Next:** [Javascript: TableOfContentsInfo.hasPageNumbers Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentsinfo/haspagenumbers-property/llms-full.txt)
