Skip to main content

push_state

Function push_state 

Source
pub fn push_state(state: &[u8], title: &str, url: &str)
Expand description

Push a new entry onto the browser’s history stack without triggering a module reload. This is analogous to history.pushState() in web browsers.

  • state: Opaque binary data retrievable later via get_state.
  • title: Human-readable title for the history entry.
  • url: The URL to display in the address bar (relative or absolute). Pass "" to keep the current URL.