Popup - Do you know JavaScript alerts are evil?

Updated by Brady Stroud [SSW] 1 year ago. See history

123

JavaScript alerts are evil. Not only are they ugly, they look unprofessional...

❌ Figure: Bad example: A JavaScript alert showing a message to the user

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

✅ Figure: Good example: The message in green is rendered as Html

✅ Figure: Good example: In this example, [Toaster](https://github.com/CodeSeven/toastr)is used

acknowledgements
related rules