history 객체
- 윈도우에서 방문한 웹 페이지 리스트(히스토리)를 나타내는 객체
- history 객체를 이용하여 웹 페이지를 이동하는 코드 사례
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h3>history 객체 활용</h3><hr>
<button onclick="history.forward()">다음</button>
</body>
</html>
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter
|
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:white">cs |
'화면구현' 카테고리의 다른 글
location 객체 (0) | 2020.03.16 |
---|---|
웹 페이지 스크롤 (0) | 2020.03.16 |
window 객체의 타이머 활용 (0) | 2020.03.16 |
윈도우 열기 (0) | 2020.03.16 |
계산기 만들기 (0) | 2020.03.12 |