WebControl.GotoURL

From Xojo Documentation

Revision as of 15:47, 25 April 2020 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method


WebControl.GotoURL(URL As String, InNewWindow As Boolean = False)

New in 2020r1

Supported for all project types and targets.

Opens the passed URL in place of the current web page or downloads a file. If InNewWindow is True, the browser is asked to open the URL in a new window.

Notes

If the browser has popup windows disabled and InNewWindow is True, the method silently fails and the page is not shown.

If InNewWindow is False, the running web app is replaced with the specified URL. If you want to display an external web site within your web app, use the WebHTMLViewer control.

Sample Code

Display a web site in a new popup window:

Me.GotoURL("http://www.wikipedia.org", True)

See Also

ShowURL method.