0

What's the deal with alerts? Can they be dangerous?

On many sites I've been on, I've found that these alert messages are unsaleable, and lead to malicious websites. Often times saying something about my computer getting a virus. So, what's the deal?

11th Jan 2017, 9:08 PM
Ezra Hankins
Ezra Hankins - avatar
2 odpowiedzi
+ 2
It's ever better to display message without using alert() because the pop-up modal window opened then isn't user friendly ( and no more coder friendly, as all execution of code is suspended while waiting for the user validation )... Modern frameworks like JQuery, Bootstrap, provide easy ways to display non modal/blocking container useful for that purpose, even if you can not very hardly doing it by yourself only with JS ^^
11th Jan 2017, 10:09 PM
visph
visph - avatar
0
its just a good way to warn the user about important things, but they can be used for any other purpose
11th Jan 2017, 9:17 PM
Daniel Carmel
Daniel Carmel - avatar