So yeah this came to mind randomly when I was teaching someone how to redirect their page. I wasn't really sure what the main difference was... Is there a reason you would use one over the other? I guess if you are not coding in PHP, you would have to use the Javascript window.location
to redirect but would you ever use window.location
over PHP header
if you were developing in PHP? I feel they have very similar functions but perhaps I am missing something.