반응형

페이지 이동 기록 활용

historytest.html

1
2
3
4
5
6
7
8
9
10
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>History객체</title>
<body>
<a href="JavaScript:history.back()">되돌아가기</a>
<a href="JavaScript:history.forward()">앞으로가기</a>
</body>
</html>
 
cs

history.go(n) 히스토리에서 페이지 만큼 이동 (음수는 뒤로)

 

반응형

+ Recent posts