Can the alert box in JavaScript be styled by CSS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can the alert box in JavaScript be styled by CSS?

10th Jun 2022, 3:41 PM
Idrees Mujib
3 Answers
+ 2
// Unfortuanely no. But you can create your own dialog using <div> block and CSS properties, or you can use libraries for dialogs already created by developers. Such as this: http://bootboxjs.com/
10th Jun 2022, 3:57 PM
program
program - avatar
+ 1
Behind every great programmer is a search engine. You can find out if it is possible through a Google query which would be faster for you instead of waiting on other to answer off the top of their heads or do the same query.
10th Jun 2022, 3:54 PM
Justice
Justice - avatar
+ 1
Create a modal in css
11th Jun 2022, 12:31 PM
D Doyen
D Doyen - avatar