Answers for "how to make code to add a ne page when clicking on button"

1

how to open new html page on button click

<!DOCTYPE html>
<html>
<head>
<script>
function openLink() {
  window.open("https://www.w3schools.com");
}
</script>
</head>
<body>

<form>
  <input type="button" value="Open Window" onclick="openWin()">
</form>

</body>
</html>
Posted by: Guest on July-25-2020
0

how to make clicking button send you down to a certain section of page html

<input type="button" onClick="document.getElementById('middle').scrollIntoView();" />
Posted by: Guest on June-03-2021

Code answers related to "how to make code to add a ne page when clicking on button"

Browse Popular Code Answers by Language