Formulaire contextuel HTML
<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>
Thomas coder