Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to switch between html pages

function change_page(){
   // similar behavior as an HTTP redirect
   window.location.replace("test.html");
   //or
   // similar behavior as clicking on a link
   window.location.href = "test.html";
}; 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #switch #html #pages
ADD COMMENT
Topic
Name
8+6 =