In my project I use below Javascript code history.back (); to return to the previous page (for example, the back arrow on the window). This feature works fine on IE and Firefox, but not on google crome?
<input type="button" value="Go back" onclick="history.go(-1); return false" />
I will get the error below
Form Resubmit Confirmation
This web page requires data that you entered earlier in order to be displayed correctly. You can send this data again, but by doing so you will repeat any action that this page previously performed. Click Refresh to resubmit this data and display this page.
Was there a googling, but everyone suggested history.go (-1); return false; but it doesnβt work either. Also tried history.back (), but that doesn't help either
source share