Instructions: Click #a, then click either button.
#a
source
<a href="#a">#a</a><br>
<button onclick="goBack()">navigation.back(); location.hash = "forward"</button><br>
<button onclick="goBackHistory()">history.back(); location.hash = "forward"</button><br>function goBack() {
navigation.back();
location.hash = "forward";
}
function goBackHistory() {
history.back();
location.hash = "forward";
}