OnSourceChanged - cWebView2Browser

Sent when the top level page source changes due to a navigation to a different page

Type: Event

Parameters: String sUrl Boolean bIsNewDocument

ParameterDescription
sUrlNew URL for the document
bIsNewDocumentTrue 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.