change html page with javascript code example
Example 1: change innerhtml
document.getElementById("p1").innerHTML = "New text!";
Example 2: javascript link to another page
window.open("http://mywebsite.com/home.html")
document.getElementById("p1").innerHTML = "New text!";
window.open("http://mywebsite.com/home.html")