How to change the way popUp for an alert appears on the screen? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to change the way popUp for an alert appears on the screen?

4th Dec 2016, 4:55 AM
Raj Chandra
Raj Chandra - avatar
4 Answers
+ 5
You can't change the style of alert, because is a system object, and is not afected by CSS. you can emulate the alert box with HTML tho. It's easier using the library jQuery . UI Modal box.
4th Dec 2016, 5:03 AM
Nahuel
Nahuel - avatar
+ 2
as Nahuel said you can not change it as it is from browser if you want your own alert box you can make your own just make a box with close button and texts by css you can make width height position color border shadow of and animate it too and use js to remove the box displayed when button is pressed.
4th Dec 2016, 10:45 AM
Sandeep Chatterjee
+ 1
thanks..but how does that work ?
4th Dec 2016, 5:25 AM
Raj Chandra
Raj Chandra - avatar
0
Yh, how does that work please?
17th Dec 2016, 9:30 PM
Aaron Gold