This site is mobile accessible. Press the "Tap Here" button to use a different font-size.



Smartphone icons created by Freepik - Flaticon

JS Location

The window.location object

// code in the button
onclick="newDoc()

// code to assign or open new document
function newDoc() {
  window.location.assign("https://www.w3schools.com")
}