OnSourceChanged - cWebView2Browser
Sent when the top level page source changes due to a navigation to a different page
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| sUrl | String | New URL for the document |
| bIsNewDocument | Boolean | True if the event is caused by a new document being loaded |
Syntax
Procedure OnSourceChanged String sUrl Boolean bIsNewDocument
Description
This message is sent when the top level page source changes due to a navigation to a different page.
It is not ready for other navigations, such as page refreshes or history.pushState with the same URL.
See OnNavigationStarting for more details on navigation events.