Web Link
From Xojo Documentation
Contents
The Link control opens a URL when clicked. By default, it displays the link as blue and underlined — the default style for a link. Use the URL property in the Inspector to set the link target and change the Text property to something that suggests the destination link. By default, the Text property is “Untitled” and the URL is set to "http://www.xojo.com".
The commonly used properties are described below. Refer to WebLink in the Language Reference for the complete list of events, properties and methods.
Properties
Target
- Determines where the URL is displayed in the browser. Options are: Self, New Window, Current Window, Parent Frame
Text
- The text of the link. This does not have to match the URL. For example, the Text could be “Visit Xojo on the Web” and the URL could be "https://www.xojo.com".
URL
- The URL that will be opened when the user clicks the Link.
Usage
You typically set up a Link using the Inspector, but you can also change values in code. To set up the Text and URL properties for a Link:
XojoLink.Text = "Visit Xojo on the web"
XojoLink.URL = "https://www.xojo.com%22
XojoLink.URL = "https://www.xojo.com%22
See Also
WebLink class; UserGuide:Web UI topic