Answers for "on click open new page html"

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
1

open link in new tab

<a href="url" target="_blank">...</a>
Posted by: Guest on October-06-2020
-1

onclick open new url html

<input type="button" value="button name" onclick="window.open('http://www.website.com/page')" />
Posted by: Guest on June-02-2021

Code answers related to "on click open new page html"

Browse Popular Code Answers by Language