How to simulate the Back Button Click

Beware this has issues in 6.3.1 with executing “back” - see Return window.history.back() in 6.3.1 goes back multiple times instead of once