NavigationStart
PowerScript event
Description
Occurs after a navigation has been committed and before the browser
begins loading contents in the frame. The event will also be triggered if
HTTP redirection occurs. During a complete navigation process, this event
can be triggered multiple times. However, if navigating to a fragment
within the same document, this event will not be triggered. The normal
order of navigation events is as follows:
-
NavigationStart
-
AddressChange
-
ContentLoading
-
HistoryChanged
-
DomContentLoaded
-
NavigationCompleted
In order to ensure compatibility, the ResourceRedirect and
NavigationError events are kept unchanged. But if there is a redirection,
the NavigationStart event is triggered first, and then the
ResourceRedirect event is triggered.
Syntax
|
1 |
NavigationStart (boolean isRedirected, string requestHeaders, string uri) |
Event ID
|
Event ID |
Objects |
|---|---|
|
None |
WebBrowser controls |
Arguments
|
Argument |
Description |
|---|---|
|
IsRedirected |
Whether the navigation is TRUE indicates the navigation is FALSE indicates the navigation is not |
|
requestHeaders |
The HTTP headers in the navigation |
|
uri |
The address of the web page to navigate |
Return Values
None
See also