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 odpowiedzi
+ 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