Caribasius
4/22/2017 - 8:22 AM

js #redirect

js #redirect

// similar behavior as an HTTP redirect
window.location.replace("http://stackoverflow.com");

// similar behavior as clicking on a link
window.location.href = "http://stackoverflow.com";