Your Internet Explorer is too old :( Please upgrade to latest IE or switch to Firefox/Google Chrome for better view!
IndiaAgainstCoronavirus
Join GiveIndia's fight against Coronavirus. Help them support the underprivileged with relief measures like food and sanitation kits, cash support and protective and life-saving equipment for hospitals and healthcare workers. Your contribution can help millions of people survive in these troubled times. The time to act is now, donate to save lives. indiafightscorona.giveindia.org

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.