location.reload();
// 또는 window.location.reload();
<button type="button" onclick="location.reload()">새로고침하기</button>
<!-- 또는 -->
<button type="button" onclick="window.location.reload()">새로고침하기</button>
<button type="button" id="reload-btn">새로고침하기</button>

<script>
    const reloadBtn = document.getElementById("reload-btn");
    reloadBtn.addEventListener("click", () => {
        location.reload();
        // 또는 window.location.reload();
    });
</script>
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="UTF-8">
        <title>타이머 + 새로고침 예제</title>
        <style>
            body {
                font-family: system-ui, -apple-system, sans-serif;
                padding: 40px;
            }
            .timer {
                font-size: 70px;
                font-weight: bold;
                color: red;
                margin-bottom: 20px;
            }
            button {
                padding: 10px 16px;
                font-size: 16px;
                cursor: pointer;
            }
        </style>
    </head>
    <body>
        <h1>타이머 + location.reload() 예제</h1>
        <div class="timer" id="timer">0</div>
        <button type="button" id="resetBtn">리셋 (새로고침)</button>

        <script>
            let time = 0;
            let intervalId = null;

            const timerEl = document.getElementById("timer");
            const resetBtn = document.getElementById("resetBtn");

            function render() {
                timerEl.textContent = time;
            }

            function tick() {
                time++;
                render();
            }

            intervalId = setInterval(tick, 1000);

            resetBtn.addEventListener("click", () => {
                location.reload();
            });

            render();
        </script>
    </body>
</html>
실제 적용된 모습