0
How can I create a pop up using html. Or is there any other language required to do so..
4 Respuestas
0
Strictly speaking you can't. Even for displaying alert you need to use some script to call window method.
<!DOCTYPE html>
<html>
<body>
<p>Click the button to display an alert box.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
alert("Hello! I am an alert box!");
}
</script>
</body>
There are few such things like that you can use: promt(), confirm().
</html>
+ 8
I think it's possible to make some kind of popup(minimal UI of course) with help of HTML only🤔 Or at least we deserve such web API to do this😎
+ 1