Back Button

This should get you what you want. Add the class hBack on a button or link or really can be put on anything you want to trigger the back in browser history function. I used a class simply because you can then have more than 1 area if you want to trigger it.

HTML

<button class="btn btn-primary hBack" type="button">Button</button>

JS

$(".hBack").on("click", function(e){
    e.preventDefault();
    window.history.back();
});

Saj