I know there is a lot of questions here with the same problem. I have tried A LOT of solutions but none has worked for me. I got a back button but it clears the form content in IE8 (not in other browsers) and I need it to work in IE8. When I started with my code I used:
<input type="button" value="Back" onclick="history.back(-1)" />
And it worked, for a while! But suddenly it stopped working and clears the form content for me. I don't know why..
I have tried:
http://www.w3schools.com/jsref/met_his_back.asp
<a id="backButton" title="Back" href="javascript:history.go(-1)" return true;">Back</a>
<a id="backButton" title="Back" href="javascript:history.go(-1)" return false;">Back</a>
<input type="button" value="Back" onclick="window.history.back()" />
<button onclick="history.back()">Back</button>
The button is working but i clears the form JUST in IE..
UPDATE
I tried with a new dokument with one if/else-statement and it's working. But when I use nestred if/else-statements it won't work. IE8 clears the form.