Home
Popup - Do you know JavaScript alerts are evil?
  v6.0 Posted at 13/07/2016 6:51 PM by Shigemi Matsumoto
​​​​​JavaScript alerts are evil. Not only are they ugly, they look unprofessional...


 

B​​​ad example: A JavaScript alert showing a message to the user

JSAlert_Code.png

Bad example: The alert(".....") is the evil code



Good example: The message in green is rendered as Html


JS_Alert_2.png

Good example: In this example, Toaster is used


Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:

    Comments:

    Note: Social Media login for Yotpo is not working in IE or Safari, please use Chrome. We are waiting for Yotpo to fix it.