-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathch14.html
More file actions
44 lines (38 loc) · 1.09 KB
/
Copy pathch14.html
File metadata and controls
44 lines (38 loc) · 1.09 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script>
// var url = location.href;
// document.write(url);
// setTimeout(function(){
// location.href = 'http://youtube.com';
// }, 3000)
// var num = 1;
// setInterval(function(){
// document.write('<p>'+num+'초가 지났습니다</p>');
// num++;
// },1000);
// setTimeout(function(){
// location.reload();
// },10001);
function back(){
history.back();
}
//주소내역 개수를 반환하는 속성
function num(){
alert(history.length);
}
</script>
</head>
<body>
<h1>
<a href="ch14_test.html">테스트페이지가기</a>
</h1>
<button onclick="back()">뒤로가기</button>
<button onclick="num()">주소내역개수확인하기</button>
</body>
</html>