Skip to content

OnHistoryChanged - cWebView2Browser

Sent whenever the browser history changes

Type: Event

Parameters

Parameter Type Description
sUrl String New URL for the document
bCanGoBack Boolean True if backward navigation is now possible
bCanGoForward Boolean True if forward navigation is now possible

Syntax

Procedure OnHistoryChanged String sUrl Boolean bCanGoBack Boolean bCanGoForward

Description

This message is sent whenever the browser history changes.

This can be part of a navigation operation (see OnNavigationStarting for an overview of navigation events) or JavaScript history manipulation.