//HTTP redirect - doesn't put the originating page in the session history
window.location.replace("http://whatever.com");
//clicking on a link
window.location.href = "http://whaterver.com"
source
//HTTP redirect - doesn't put the originating page in the session history
window.location.replace("http://whatever.com");
//clicking on a link
window.location.href = "http://whaterver.com"
source