How can I create a pop up using html. Or is there any other language required to do so.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I create a pop up using html. Or is there any other language required to do so..

24th Apr 2019, 3:48 AM
MOIN KHAN
MOIN KHAN - avatar
4 Answers
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>
24th Apr 2019, 4:32 AM
Dima Makieiev
Dima Makieiev - avatar
+ 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😎
13th Jun 2019, 3:24 AM
Вап
13th Jun 2019, 2:09 AM
Calviղ
Calviղ - avatar