2017  Kodetalk | Feedback | Privacy Policy | Terms | About

How to refresh screen after ajax call?

i submitted a form using ajax call and now i want to refresh my window so that i will get complete fresh contain for that page. how to do that.

To refresh the same screen after doing ajax call you can use below method:

window.location.href = window.location.pathname + window.location.search;

Hope this will help you a lot to refresh the same page.

Answer is