WEB/html,CSS

[html] 페이지간 이동하기

자바칩 프라푸치노 2021. 6. 9. 16:53

detail.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
   
    </script>
</head>
<body>
    <h1>상세페이지</h1>
    <button onclick=" window.location.href='/'">메인으로 돌아가기</button>
</body>
</html>

index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>메인 페이지</h1>
    <a href="/detail">상세 페이지로 가기</a>
</body>
</html>
728x90