docs.rodeo

MDN Web Docs mirror

history

Use the history API to interact with the browser history.

If you are looking for information about the browser session history, see the History interface.

[!NOTE] Downloads are treated as HistoryItem objects. Therefore, events such as history.onVisited fire for downloads.

Browser history is a chronological record of pages the user has visited. The history API enables you to:

However, the user may have visited a single page multiple times, so the API also has the concept of “visits”. So you can also use this API to:

To use this API, an extension must request the “history” permission in its manifest.json file.

Types

Functions

Events

{{WebExtExamples("h2")}} 

Browser compatibility

{{Compat}} 

[!NOTE] This API is based on Chromium’s chrome.history API. This documentation is derived from history.json in the Chromium code.

In this article

View on MDN