js
<script>
function pagebackward(){
window.history.back();
}
function pageforward(){
window.history.forward ();
}
</script>
html:
<div>
<button type="submit" style="background-image:url(img/back.jpg);;width:50px;height:30px;" onclick="pagebackward()"> </button>
</div>