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:
success: function(obj) {
//code
location.href = location.href;
}
or
success: function(obj) {
//code
window.location.reload(true);
}
Is there any difference in the behaviour? I know the difference of both location
and window.location
but in terms of do the job?