Firefox Tomorrow

web api instance property

History: length property

View on MDN ↗

The length read-only property of the History interface returns an integer representing the number of entries in the session history, including the currently loaded page.

For example, for a page loaded in a new tab this property returns 1.

Value

A number.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also

  • The History interface it belongs to.