I have on page (B) the following code to go back 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.
As I understand it, windows.history
is something like this [A,B,B]
.
Can this be resolved? Is it possible to access the content of windows.history
?