This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

History.length

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2015년 7월⁩.

History.length 읽기 전용 속성은 현재 페이지를 포함해, 세션 기록의 길이를 나타내는 정수를 반환합니다. 예를 들어, 새로운 탭에 막 불러온 페이지의 세션 기록 길이는 1입니다.

명세

Specification
HTML
# dom-history-length-dev

브라우저 호환성

같이 보기

  • 속성이 속한 History 인터페이스