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
btCurrentWindowOpen in current browser window
btNewTabOpen in new browser tab
btNewWindowOpen 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 "http://www.dataaccess.com" btNewTab
End_Procedure

See Also

NavigateNewWindow | NavigateRefresh | ShowMessageBox | ShowInfoBox | ShowYesNo