Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JS redirect

window.location.href = "/"; // appears on history
window.location.replace("/"); // does not appear on history
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #JS #redirect
ADD COMMENT
Topic
Name
3+1 =