+ 1

why we do alerts in js?

22nd Jun 2016, 6:01 PM
RACHIDI Taoufiq رشيدي توفيق
RACHIDI Taoufiq رشيدي توفيق - avatar
3 Respostas
+ 5
ZinC is right here, of course, although in reality, alert() is used mostly for debugging. For notifications/alerts for the user, a custom html/js alert is used often, because alert() does not support CSS or multiple input fields for instance.
22nd Jun 2016, 8:05 PM
undefined
+ 2
To alert the user of something.
22nd Jun 2016, 6:28 PM
ZinC
ZinC - avatar
+ 2
The alert() method displays an alert box with a specified message and an OK button.
23rd Jun 2016, 10:56 AM
Saud Ahmad
Saud Ahmad - avatar