# TargetGoto Method

> Moves the text input position to a link target given by its identifier or name and scrolls it to the top of the visible text; returns True or False.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > TargetGoto Method
- **239 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetgoto-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetgoto-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetgoto-method/llms-full.txt

---

Sets the current text input position to the position of the specified link target and scrolls the text so that this position is at the top of the control's visible text.

Introduced: 28.0.

### Syntax

```vbscript
TXTextControl.TargetGoto TargetIdOrName
```

### Parameters

| Parameter | Description |
|---|---|
| TargetIdOrName | Specifies the target's unique identifier or name. The id must be the value returned from the [TargetInsert](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetinsert-method/llms-full.txt) method, the name must be the target's [TargetName](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetname-property/llms-full.txt). |

### Return Value

If the target could be found the method returns True, otherwise it returns False.

### Data Types

| Name | Data type |
|---|---|
| TargetIdOrName | Long or String |
| Return value | Boolean |

### See Also

- [Marked Text Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/llms-full.txt)
- [Programming Category: Hypertext Links](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/hypertext-links/llms-full.txt)

---

## Nearby

- **Previous:** [TargetDeleted Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetdeleted-event/llms-full.txt)
- **Next:** [TargetInsert Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetinsert-method/llms-full.txt)
