← Back to Page domain

Page.getNavigationHistory

Returns navigation history for the current page.

Domain: Page stable

Returns

NameTypeDescription
currentIndexintegerIndex of the current navigation history entry.
entriesarrayArray of navigation history entries.

Example Request

{
  "id": 1,
  "method": "Page.getNavigationHistory"
}

Example Response

{
  "id": 1,
  "result": {
    "currentIndex": 1,
    "entries": []
  }
}

Usage in Node.js

const result = await send('Page.getNavigationHistory');
console.log(result);
// {"currentIndex": 1, "entries": []}