Answers for "form as a pop up in html"

5

how to make windows pop up in html

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
</head>
<body>
<button onclick = 'f=window.open("URL,exampe - google.com","fenetre","the style (without style tag, example - width=400, height=600, no px")'style="cursor: pointer;">pop up</button>
</body>
</html>
Posted by: Guest on June-23-2021
0

html popup form

<html>
<body>


<p>Here we use the prompt() method for Popup Forms</p>

<button onclick="popupfunction()">Click</button>

<p id="popup"></p>

<script>
function popupfunction() {
  let person = prompt("Please enter your name", "");
  if (person != null) {
    document.getElementById("popup").innerHTML =
    "Hello " + person + "!";
  }
}
</script>

</body>
</html>
Posted by: Guest on April-25-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language