Skip to content

HistoryReplaceState - cBaseLocalControlHost

Replaces the top level item on the history stack (so no new history item is added)

Type: Procedure

Parameters

Parameter Type Description
sUrl String The new URL
sTitle String The new page title
stateData tWebValueTree A tWebValueTree struct to store additional data

Syntax

Procedure HistoryReplaceState String sUrl String sTitle tWebValueTree stateData

Call Example

Send HistoryReplaceState sUrl sTitle stateData

Description

Replaces the top level item on the history stack (so no new history item is added).

A new URL and title can be passed.

The stateData object can be used to store data used when navigating back to this history item (see OnHistoryPopState). Maps to the JavaScript browser API history.replaceState().