Computer >> 컴퓨터 >  >> 프로그램 작성 >> HTML

HTML에서 창의 기록이 변경되면 스크립트를 실행하시겠습니까?


창의 기록이 변경되면 onpopstate 이벤트 트리거. 다음과 같이 추가할 수 있습니다 -

예시

<!DOCTYPE html>
<html>
   <body onpopstate = "onpopstateFunction()">

      <p>This is demo text</p>

   </body>
</html>