WebControl.ShowURL

From Xojo Documentation

Method


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

New in 2010r5

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.

Example

Display a web site in a new popup window:

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

See Also

ShowURL method.