javascript page back code example
Example 1: javascript page back
<button onclick="goBack()">Go Back</button>
<script>
function goBack() {
window.history.back();
}
</script>
Example 2: js go back
history.back()
<button onclick="goBack()">Go Back</button>
<script>
function goBack() {
window.history.back();
}
</script>
history.back()