From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Class (inherits from WebLabel)

Create a clickable label that navigates to the specified URL when clicked.

Closed Hidden Pressed
ContextualMenuSelected LostFocus Shown
GotFocus Opening
Appearance LockBottom fa-lock-32.png Target
Bold LockHorizontal fa-lock-32.png Text
ContextualMenu LockLeft fa-lock-32.png TextAlignment
ControlID fa-lock-32.png LockRight fa-lock-32.png TextColor
Enabled LockVertical fa-lock-32.png Tooltip
FontName Multiline Top
FontSize Name fa-lock-32.png URL
Height Page fa-lock-32.png Underline
Indicator Parent fa-lock-32.png Value
Italic Style Visible
Left TabIndex Width
Close GotoURL SetHTML
ExecuteJavaScript SetFocus UpdateBrowser
Appearances Targets


Pressing the WebLink navigates to the specified URL, exiting the web application. If you want to display the page at the URL within your web app, you should use a WebHTMLViewer instead.

You can use the Target property to have the URL open in another browser window or tab.

To navigate to other pages within your app, use the WebPage.Show method. See WebLink.URL.


Specify the URL for a WebLink to navigate to Wikipedia:

Link1.URL = "http://www.wikipedia.org"

See Also

WebControl, WebLabel, WebHTMLViewer classes.