replaceState method

void replaceState(
  1. JSAny? data,
  2. String unused, [
  3. String? url
])

The replaceState() method of the History interface modifies the current history entry, replacing it with the state object and URL passed in the method parameters. This method is particularly useful when you want to update the state object or URL of the current history entry in response to some user action.

Implementation

external void replaceState(
  JSAny? data,
  String unused, [
  String? url,
]);