How to format an alert box | Sololearn: Learn to code for FREE!


How to format an alert box

I want to format or edit an alert box but I don't know what tag or function I have to write for that.

9/13/2018 1:54:15 PM

Arpit Mittal

3 Answers

New Answer


You can't format a traditional alert (window.alert("some text");) but you can make modals pop up as if they were alerts. There are already similar (if not identical) questions posted. You can find the answers using the search bar (keyword "alert" sort by most popular). Please help keep the quality of posts high in this section of the forum, SoloLearn servers uncluttered, and app latency low by reviewing the following: Be sure not to miss the link to the Community Guidelines toward the bottom of the article. Happy coding! P.S. Please see the following post for a humorous interpretation (but still an earnest plea).


not nice Emmanuel


Stellar Fox: Refrain from posting such things Emmanuel