OnHistoryPopState - cBaseLocalControlHost
Called when the back button is used in the browser and the history item was pushed using HistoryPushState
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| sTitle | String | The new page title |
| sUrl | String | The new URL |
| stateData | tWebValueTree | A tWebValueTree struct to store additional data |
Syntax
Procedure OnHistoryPopState String sTitle String sUrl tWebValueTree stateData
Description
This event is called when the back button is used in the browser and the history item was pushed using HistoryPushState.
In that case, the browser does not reload the page, but fires this event, allowing the application itself to respond to the event . The stateData object contains the information that was passed to it when calling HistoryPushState. Maps to the JavaScript browser popstate event.