Notice
Recent Posts
Recent Comments
Link
«   2024/06   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Tags
more
Archives
Today
Total
관리 메뉴

WON.dev

chapter04 : history 본문

WEB.JS/07.BOM_JS

chapter04 : history

GAWON 2023. 5. 22. 09:17
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
/*
history : 웹 페이지 상단의<, > 화살표
입력된 양식이 삭제되지 않고 유지되기 때문에(캐시가 가능한 경우) 여러 페이지 등에서 사용
*/

```
//1.뒤로가기
history.back();  //history.go(-1) 동일

//2.앞으로 가기
history.forward();  //history.go(1) 동일

//3.이전 페이지로 가기
history.go(-1);  //주로 사용한다  :()안에 숫자마다 그 페이지로 이동가능

//4.이전 이전 페이지로 가기
history.go(-2);

```

</script>
</head>
<body>

</body>
</html>

'WEB.JS > 07.BOM_JS' 카테고리의 다른 글

chapter05 : location  (0) 2023.05.22
chapter03 : window객체  (0) 2023.05.22
chapter02 : window객체  (0) 2023.05.22
chapter01 : window객체  (0) 2023.05.22