SweetAlert

A beautiful replacement for JavaScript's alert()

#2 Product of the DayOctober 02, 2014
Discussion
Would you recommend this product?
No reviews yet
Why not just override the existing alert() method so it just works? Try to make that work and I will use this for every project! http://stackoverflow.com/questio...
@ryandetzel You could, but then you are forced to use this alert everywhere in your app, while sometimes you want to use it only at specific places.
@ryandetzel You could add window.alert = sweetAlert; to your javascript and it will already do so!
Looks great, but would love to see keyboard shortcuts (at least enter).
Keyboard shortcuts! A lot of the JavaScript UI widgets that are a replacement for native/browser controls _look_ nicer, but that doesn't mean the overall UX is better. Keyboard shortcuts, auto-focus, etc. are crucial for things like alert/confirm/prompt. For completeness, would be nice to see matching confirm/prompt as well. And I agree - there should be an option for clobbering/overriding the original alert function.
Simple. Effective. Nice job @dvyio
@chad_fullerton I'd love to say I created it, but it's @t4t5's work!
Very nice and simple.