Skip to content
Advertisement

Windows.history.back() + location.reload() jquery

I’ve a probleme in my code. The aim is to complete a simple form, then you click on a submit button. It do an Ajax resquest to go in the method. On success in the ajax request, i use windows.history.back() to go to the previous page ans here i want to refresh this page, to refresh values which are modificated by the form ! Have you an idea about that ?

JavaScript

Advertisement

Answer

It will have already gone back before it executes the reload.

You would be better off to replace:

JavaScript

with:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement