HTML

          
<button onclick="goBack()">Go Back</button>

JavaScript

function goBack() {
    window.history.back();
}

Result

to go back one webpage based on your web browser's history.
Back To TIL