Pergi ke halaman sebelumnya

const backBtn = document.getElementById('back-btn');

backBtn.addEventListener('click', ()=>{
    window.history.back();
});
mentico