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
NavigationStart (boolean isRedirected, string requestHeaders, string uri)
Event ID
Arguments
Argument |
Description |
---|---|
IsRedirected |
Whether the navigation is redirected. TRUE indicates the navigation is redirected. FALSE indicates the navigation is not redirected. |
requestHeaders |
The HTTP headers in the navigation request. |
uri |
The address of the web page to navigate to. |
Return Values
None
See also