Your Internet Explorer is too old :( Please upgrade to latest IE or switch to Firefox/Google Chrome for better view!

Displaying 1 posts for 2015

September 19, 2015

Custom JavaScript Alert Box with modernAlert.js

16 comments
modernAlert.js In JavaScript, there are three native popup boxes: Alert, Confirm and Prompt. I personally like to use them because these functions cannot be replaced by custom coding. Yes, I am right, you cannot hold the execution of JavaScript like these functions do. However, sometimes we have to tweak somewhere when it is about the design.
These popup boxes look different in every web browser along with their ugly appearance.

As I mentioned already that we cannot achieve exact duplicate of these functions but we can have something similar to it.


I wrote a pure JavaScript function, which can replace these native functions. And we can customize the appearance as well.