link

Used with the textStyle property to make a run of text in a field behave like a single word when clicked.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

link

# Examples

set the textStyle of the foundChunk to link

# Description

Use the link keyword to create clickable text.

Text with its textStyle set to "link" is treated specially by the clickText, clickChunk, mouseText, and mouseChunk functions: a style run of grouped text is treated as a single word. This makes grouped text handy to use for hypertext or "clickable text" features.

>*Note:* Each continuous run of "link"-styled text is considered a > single grouped text, even if you selected part of the > text and set its textStyle to "link", and set the textStyle of the > other part later. It is not possible for two > separate grouped text to exist if there are > no characters between them.

To show which text in a field is grouped, it is underlined and displayed in the color specified by the linkColor property. Use the hide groups command to hide the underline.

# Tags

ui,

# See

- **keyword:** field, word, characters - **property:** textStyle, linkHiliteColor, selected, linkColor, linkText, linkVisitedColor - **message:** linkClicked - **command:** show groups, hide groups - **function:** clickChunk, mouseChunk, clickText, mouseText - **glossary:** property, keyword, grouped text, command, hypertext, function

Site Owned by: David Bovill