How to style an alert box in javascript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to style an alert box in javascript

17th Jul 2021, 4:30 PM
clement ndiok
clement ndiok - avatar
13 Answers
+ 3
From this example you can learn how to create your own dialogs: https://code.sololearn.com/WxbjPA3GaVuJ/?ref=app
17th Jul 2021, 5:35 PM
JaScript
JaScript - avatar
17th Jul 2021, 4:46 PM
The future is now thanks to science
The future is now thanks to science - avatar
+ 2
Google "sweet alert js"
17th Jul 2021, 4:46 PM
Rohit
+ 2
clement ndiok ok as u wish 😁
19th Jul 2021, 5:24 AM
Anurag Saikia
17th Jul 2021, 4:48 PM
clement ndiok
clement ndiok - avatar
17th Jul 2021, 5:18 PM
A͢J
A͢J - avatar
+ 1
I ᴀᴍ "Tɪᴍᴇ" thanks for the feedback.
17th Jul 2021, 9:19 PM
clement ndiok
clement ndiok - avatar
+ 1
JaScript thanks
17th Jul 2021, 9:19 PM
clement ndiok
clement ndiok - avatar
+ 1
clement ndiok you can use some alert libraries and also you can make your customized alerts using pure js and jQuery.
18th Jul 2021, 6:04 AM
Anurag Saikia
+ 1
Anurag Saikia thanks that will be helpful
18th Jul 2021, 8:54 PM
clement ndiok
clement ndiok - avatar
+ 1
thank you
18th Jul 2021, 11:59 PM
Sajid
Sajid - avatar
+ 1
You can search for 'Modal tutorial' in youtube , you will get plenty of tutorials there . Create a '<div id="alert">' element and style it with css set it's display: none; And do this with javascript function click(){ document.getElementById("alert").style.display="block"; }
19th Jul 2021, 5:30 AM
Parth Shendge
0
Cherrim thank you
17th Jul 2021, 4:49 PM
clement ndiok
clement ndiok - avatar