NavigateToPage - cWebApp

Opens a URL in a new browser tab, a new browser window or replaces your web application

Type: Procedure

Parameters: String sURL Integer eBrowserTarget

ParameterDescription
sURLThe URL to open
eBrowserTargetValid values are:

ConstantMeaning
btCurrentWindow (0)Open in current browser window
btNewTab (1)Open in new browser tab
btNewWindow (2)Open in new browser window


Syntax
Procedure NavigateToPage String sURL Integer eBrowserTarget

Call: Send NavigateToPage sURL eBrowserTarget


Description

Send NavigateToPage to open a URL in a new browser tab, a new browser window or to replace your web application (using the current browser window).

If you pass the btCurrentWindow parameter, then the passed URL will displace your web application on the browser.

You can use NavigateNewWindow to open a new window with a specific size.

Sample

This sample shows how to open a new browser tab that navigates to the Data Access Worldwide home page when a button or menu item is clicked.

Procedure OnClick
    Forward Send OnClick 
    Send NavigateToPage "https://www.dataaccess.com" btNewTab
End_Procedure

See Also

NavigateNewWindow | NavigateRefresh | ShowMessageBox | ShowInfoBox | ShowYesNo