I have an HTML form with two buttons as follows:
<input type="submit" name="confirm" value="Yes, Delete" />
<button name="confirm" type="button" onclick="history.back()" value="No, Go Back" >No, Go Back</button>
Now, when I click on either in Firefox, the behavior is as expected. If I click the submit button, then "Yes, Delete" gets posted and if I click "No, Go Back" it's as if I hit the back button on the browser. However, in Internet Explorer (6 or 8), if I click on "Yes, Delete" then "No, Go Back" gets posted. Why is that?