JavaScript(BOM)_Exam_01

2024. 10. 16. 08:55·JavaScript/기초 내용 정리

2024-10-15

 

 

 

 

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <h2>첫번째 페이지</h2>

    <a href="Exam_02.html">두번째 페이지</a>
    
</body>
</html>

 

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <h2>두번째 페이지</h2>

    <a href="Exam_03.html">세번째 페이지</a>

    <hr>

    <input type="button" value="이전 페이지"
        onclick="history.back()">

    <input type="button" value="다음 페이지"
        onclick="history.forward()">

    <input type="button" value="마지막 페이지"
        onclick="history.go(2)">   
        <!-- 2 페이지를 건너뛴다는 뜻 -->

</body>
</html>

 

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
       
    <h2>세번째 페이지</h2>

    <a href="Exam_04.html">마지막 페이지</a>

    <hr>

    <input type="button" value="이전 페이지"
        onclick="history.back()">

    <input type="button" value="다음 페이지"
        onclick="history.forward()">

    <input type="button" value="마지막 페이지"
        onclick="history.go(1)">

</body>
</html>

 

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <h2>마지막 페이지</h2>

    <hr>

    <input type="button" value="바로 이전 페이지"
        onclick="history.go(-1)">

    <input type="button" value="맨 처음 페이지"
        onclick="history.go(-3)">


</body>
</html>

 

 

 

 

'JavaScript > 기초 내용 정리' 카테고리의 다른 글

JavaScript(Function)_06  (0) 2024.10.16
JavaScript(Function)_05  (0) 2024.10.16
JavaScript(DOM)_10  (2) 2024.10.15
JavaScript(DOM)_09  (0) 2024.10.15
JavaScript(DOM)_08  (0) 2024.10.15
'JavaScript/기초 내용 정리' 카테고리의 다른 글
  • JavaScript(Function)_06
  • JavaScript(Function)_05
  • JavaScript(DOM)_10
  • JavaScript(DOM)_09
mw41817
mw41817
일생의 개발 기록 저장소
  • mw41817
    IT 개발 일지
    mw41817
    • Index (487)
      • HTML (36)
        • 기초 내용 정리 (36)
      • CSS (29)
        • 기초 내용 정리 (29)
      • JavaScript (60)
        • 기초 내용 정리 (60)
      • JQuery (38)
        • 기초 내용 정리 (38)
      • Java (232)
        • 기초 내용 정리 (232)
      • JSP (46)
        • 기초 내용 정리 (46)
      • Spring, Boot (31)
        • 기초 내용 정리 (31)
      • DB (5)
        • Oracle SQL (5)
      • Code WorkBook (6)
        • programmers (6)
        • Baekjoon (0)
      • 기타 (1)
        • 유용한 사이트 (3)
  • 전체
    오늘
    어제
  • 글쓰기 관리
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 카테고리
    • 주인장 GitHub
  • 공지사항

  • 인기 글

  • 태그

    html #코딩 #프로그래밍 #기초
  • 최근 댓글

  • hELLO· Designed By정상우.v4.10.0
mw41817
JavaScript(BOM)_Exam_01
상단으로

티스토리툴바