<a href="javascript:void(history.go(-1))"><img src="{{URL('static', ....)}}"></a>
puts an image link that simulates the back button on the page. You could convert it to button and use the jQuery alternative Too much of a hack? The web2py framework is very good with history integration.