Web Link

From Xojo Documentation

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 "".

The commonly used properties are described below. Refer to WebLink in the Language Reference for the complete list of events, properties and methods.



Determines where the URL is displayed in the browser. Options are: Self, New Window, Current Window, Parent Frame


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 "".


The URL that will be opened when the user clicks the Link.


Web Link

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 = "

See Also

WebLink class; UserGuide:Web UI topic