Popup customized | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Popup customized

Hello I have 2 questions For do a page like an alert, i must take alert ou button (popup) And for this new page i want do a color text, put any svg, and othirs thinks... i must put it in js with function or in html ? Thankā€™s https://code.sololearn.com/WdF91SRnr4G3/?ref=app

30th Dec 2018, 5:26 PM
Axelle
2 Answers
+ 4
Hi, I'm not sure I fully understand the question(s). The easiest way to create a pop-up is to use a JavaScript alert. However, formatting options for this method are few/limited. For format-able pop-up boxes, I recommend searching (SoloLearn FAQ or outside of SoloLearn) for how to create modals. w3schools offers several examples and most front-end frameworks should have modals readily available. For the most part, formatting (such as coloring text) should be done with CSS. If it will be done dynamically ("on the fly"), then consider enlisting JavaScript for help. If you have questions for Lorshan, you can always leave a comment in their project.
31st Dec 2018, 5:13 AM
Janningā­
Janningā­ - avatar
+ 1
thankā€™s a lot
1st Jan 2019, 9:09 PM
Axelle