Hi João,
thank you for your quick great support. I tried it right away
It works almost perfectly. I have a save button on the second page, where I write data to the database. If I press this save-button and then press the back button, I first stay on the same page. Only if I press the back button again I return to the previous page. If I do not press the save button, I immediately come to the previous page.
Do I have to install a counter and pass to the history.back() function dynamically?
How could I do that or is there a smoother solution?