history property
History
get
history
The Window.history
read-only property returns a reference to the
History object, which provides an interface for manipulating the browser
session history (pages visited in the tab or frame that the current page
is loaded in).
See Manipulating the browser history for examples and details. In particular, that article explains security features of the History.pushState and History.replaceState methods that you should be aware of before using them.
Implementation
external History get history;