replaceState
TOC
Collapse the table of content
Expand the table of content

replaceState method

Updates the current entry in the session history to have the given data, title, and, if provided, URL.

Syntax

var retval = history.replaceState(statedata, title, url);

Parameters

statedata [in]

Type: any

The data to update.

title [in]

Type: DOMString

The data title to update.

url [in, optional]

Type: DOMString

The optional data URL to update.

Return value

Type: HRESULT

This method can return one of these values.

S_OK

See also

history

 

 

Show:
© 2017 Microsoft