You could also implement native back with:
window.history.back();
//in your onclick="history.back()"
//also can try with:
//javascript:history.go(-1)">
Or call a function that check if history.back() is available in the browser first else implement a custom back function/code as is showed here (I would prefer take out the code from the html just handle the onclick in my function)
Using javascript history.back() fails in Safari .. how do I make it cross-browser?
For a robust solution check history.js: