Does history.go(-1); behaves same in all browsers? I am seeing different behavior across various browsers.
My code contains a line similar to javascript:history.go(-1);
I have three check boxes in first page. User is allowed to select only two of them. If I select all three and hit submit then in next page, am doing javascript:history.go(-1); using a button saying error message that only two options are allowed. In safari when I come back to first page I see all three check boxes selected, but in firefox only two of them are selected. Chrome, Confirm Form Resubmission message to refresh the page
No, Browsers can act differently to
histroy.go. How you interact with the browser beforehistory.gocan have different effects when it is called. To make cross-browser javascript is fairly tricky, but correcting the history issue should be fairly simple. I answered your only question, “Is this true?”. It is likely you want to know how to fix the issue and that is specific to your code.