Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Navigate – PB Docs 2022 – PowerBuilder Library

Navigate – PB Docs 2022

Navigate

PowerScript function

Description

Browses the specified Web page.

Applies to

WebBrowser
control

Syntax

Argument

Description

controlname

The name of the WebBrowser control.

url

The address of the page to browse.

Return value

Integer.

Returns 1 if the function succeeds and a negative value if an error occurs.
If any argument’s value is null, the method returns null.

Usage

The Navigate function is executed asynchronously. Therefore, if the
next script must be executed after the Navigate function is completed,
then it is recommended to check the value of the NavigationProgressIndex
event, and only after the event receives the value of 100 (which means the
page is 100% loaded), the next script should be executed. For
example,

But if the page to be loaded is complicated (such as loading
multiple frames, embedding large amount of data, associating and accessing
data from other websites, having complex logics or deep hierarchical
structure etc.), the value of 100 may not indicate that the page is
completely loaded. In such case, you can consider using Yield and Sleep
functions to delay executing the next script. For example,

Examples

This example navigates to the Appeon website:

See also

CancelDownload

EvaluateJavascriptAsync

EvaluateJavascriptSync

GetSource

GoBack

GoForward

PrintAsPDF

PauseDownload

RegisterEvent

ResumeDownload

Refresh

StopNavigation

UnregisterEvent

Zoom


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x