JAVASCRIPT/JQUERY/AJAX

history back (Back Forward Cache) 감지 - 익스, 크롬, 사파리, 파이어폭스 뒤로가기 이벤트 감지

최고관리자
2020.07.20 14:17 16,911 0

본문

window.onpageshow = function(event) {
if ( event.persisted || (window.performance && window.performance.navigation.type == 2)) {
// Back Forward Cache로 브라우저가 로딩될 경우 혹은 브라우저 뒤로가기 했을 경우
alert("히스토리백!!!!");
        }
}

댓글목록 0

등록된 댓글이 없습니다.