Answers for "how to switch between pages in html"

2

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";
};
Posted by: Guest on January-20-2021

Code answers related to "how to switch between pages in html"

Browse Popular Code Answers by Language