From Xojo Documentation


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

New in 2020r1

Supported for all project types and targets.

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


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.


Display a web site in a new popup window:

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

See Also

ShowURL method.