window.history
브라우저 히스토리 다루기
// history 앞 뒤로 움직이기
window.history.back();
window.history.forward();
// history의 특정 지점으로 가기
window.history.go(-1);
window.history.go(1);
let numberOfEntries = window.history.length;history entries를 추가하고 수정하기
pushState 예제
pushState 메서드 톺아보기
Last updated
Was this helpful?