Window.HistorySourceBrowser history.
The scroll restoration enum.
The type for History objects. See Window.history to get one.
length h is the number of elements in history including the currently loaded page.
scroll_restoration h is the scroll restoration behaviour of h.
set_scroll_restoration h r sets the scroll_restoration of h to r.
go delta goes forward or backward in history by delta steps. 0 reloads the current page.
Warning. This may become typed in the future. Note that the specifiation mandates state values to be serializable.
push_state h ~state ~title ~uri h pushes state state with title title and URI uri (if any). Any of these can be omitted.
Warning. The title argument seems to be ignored by browsers. Use Document.set_title to change the title.
replace_state h ~state ~title ~uri replaces state state with title title and URI uri (if any). Any of these can be omitted.
Warning. The title argument seems to be ignored by browsers. Use Document.set_title to change the title.