Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js redirect

// similar as an HTTP redirect, page will be not in browser history
window.location.replace("/replaced.html");

// similar as clicking on a link, page will be on history :-)
window.location.href = "/replaced.html";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #redirect
ADD COMMENT
Topic
Name
8+1 =