0

Can i use css to java script ....

i will like to style for example the alert box by defining background color ,image ,etc

8th Oct 2018, 2:01 PM
ALAINGIRESSE ETONGO
ALAINGIRESSE ETONGO - avatar
3 Respostas
+ 4
You can't. You'll have to create your own. The alert box is a system object, and not subject to CSS. To do this style of thing you would need to create an HTML element and mimic the alert() functionality. The jQuery UI Modal box does a lot of the work for you, http://jqueryui.com/dialog/ https://stackoverflow.com/questions/7853130/how-to-change-the-style-of-alert-box
8th Oct 2018, 2:09 PM
Willem Roos
+ 2
It's not possible to style alert, prompt and confirm boxes. The style is chosen by the browser.
8th Oct 2018, 2:10 PM
ReimarPB
ReimarPB - avatar