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?
2 Antworten
+ 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 ^^
0
its just a good way to warn the user about important things, but they can be used for any other purpose