How do I make a custom "alert" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I make a custom "alert"

I'm tried of my alert saying "code playground at the top, I want a custom one

19th Apr 2018, 12:27 PM
Joshua
Joshua - avatar
3 Answers
+ 7
You can use CSS and JS to first make a comment box and then animate it and take the value by using the HTML input tag 🤔 And if you are looking for some libraries for making the alert look beautiful, SweetAlert is a good choice https://sweetalert.js.org/guides/
19th Apr 2018, 12:36 PM
Nikhil
Nikhil - avatar
+ 2
https://www.sololearn.com/Discuss/910968/?ref=app
19th Apr 2018, 12:53 PM
Louis
Louis - avatar
0
Thank you but I found one error, when you tap "open box" at the top, it gets ride of my bg color
19th Apr 2018, 7:27 PM
Joshua
Joshua - avatar