3
I have on page (B) the following code to return to the last page (A):
<div class="return_back" onclick="window.history.go(-1);">< voltar </div>
I have a form on page (B), and if I submit it one or more times, it does not return to the last page, but stays the same.
From what I understand, windows.history something like this [A,B,B].
Is it possible to solve this? There is possibility of having access to the content of windows.history?
The problem is that the previous page has get variables in the link and are needed to load the required Infos
– M_b_85
But the submission sends the form to where ? What the
actionof<form>?– Isac
The form action is the current page
– M_b_85
If I understood correctly, a solution would be to use ajax not to reload the page, so when you used your back button, you would go back to page A because you would not need to reload page B every time.
– Laércio Lopes