Can you change the style of an alert(), that is, any function to be able to do it or does it always have to be the same way?
Can you change the style of an alert(), that is, any function to be able to do it or does it always have to be the same way?
You can not. The alert window is native to the browser and cannot be styled. You could create your own or perhaps download a plugin which can make your life easier.
You could use SweetAlert , it's very easy to learn and has a nice design (although you can style it yourself too).
Here is another one called jQuery-confirm
Find the one that best suits your needs and tastes.
As fellow Hoose says, you can use SweetAlert . Very easy to implement and customize.
You add the necessary files and work.
And to work.