I need to reload a page in a success of an ajax call. I’m seeing some code (not mine) and there are two ways: or Is there any difference in the behaviour? I know the difference of both location and window.location but in terms of do the job? Answer The main difference is follow: window.location.reload() reloads the current page with