+ 2

How can I set an alert in my website?

I want to put a alert in my website. Which element should I use?

2nd Jan 2019, 8:12 AM
Razin Keelath
Razin Keelath - avatar
3 ответов
+ 6
1) See Mohammad Mirali's answer 2) If you want people to enjoy your website and come back, don't use alerts unless it is absolutely necessary
2nd Jan 2019, 8:31 AM
Anna
Anna - avatar
+ 4
You can use the java script alerts, for example: alert ('Your Text' ); You can see other examples in the code below https://code.sololearn.com/W6zlC7FGYn0y/?ref=app
2nd Jan 2019, 8:17 AM
Mohammad Mirali
Mohammad Mirali - avatar
+ 3
As Anna said, normal alerts doesn't look good on websites but they do the job. Try using custom alert boxes like this one: https://sweetalert.js.org/
2nd Jan 2019, 8:40 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar