<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
// window.history.속성
// window.history.메서드()
// history.length 히스토리 목록 개수
// history.back() 이전페이지 이동
// history.forward() 다음페이지 이동
// history.go(숫자) 숫자값 만큼 페이지 이동(양수:앞으로, 음수:뒤로)
// window.location.속성
// location.protocol 웹사이트 프로토콜 확인
// hostname, port, host(hostname + port), pathname(문서경로)
// window.location.메서드()
// location.reload() 새로고침
// location.replace(주소) 이동 ( = location.href)
</script>
</head>
<body>
<input type="button" value="앞으로" onClick="history.forward()">
<input type="button" value="뒤로" onClick="history.back()">
<input type="button" value="뒤로2" onClick="history.go(-2)">
<br><br><br>
<input type="button" value="naver.com 이동"
onClick="location.href = 'http://pigcorn.blog.me'">
<input type="button" value="naver.com 이동"
onClick="location.replace('http://pigcorn.blog.me')">
<input type="button" value="Host" onClick="alert(location.host)">
</body>
</html>
[출처] http://blog.naver.com/pigcorn?Redirect=Log&logNo=120156144231
'etc...' 카테고리의 다른 글
| MSSQL 날짜 기간 조회 (0) | 2012.05.28 |
|---|---|
| [MSSQL] NTEXT 치환 (0) | 2012.05.08 |
| jquery 한글 깨짐 (0) | 2012.02.23 |
| mysql 세션 kill (0) | 2012.02.23 |
| Apache yum 설치 (0) | 2011.11.29 |



