docs.rodeo

MDN Web Docs mirror

History

{{APIRef("History API")}} 

The History interface of the {{domxref("History API", "", "", "nocode")}}  allows manipulation of the browser session history, that is the pages visited in the tab or frame that the current page is loaded in.

There is only one instance of history (It is a singleton.) accessible via the global object {{domxref("Window.history", "history")}} .

[!NOTE] This interface is only available on the main thread ({{domxref("Window")}} ). It cannot be accessed in {{domxref("Worker")}}  or {{domxref("Worklet")}}  contexts.

Instance properties

The History interface doesn’t inherit any property.

Instance methods

The History interface doesn’t inherit any methods.

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN