![modernAlert.js](https://2.bp.blogspot.com/-jflqTkvKsYs/Vf1UYKNODfI/AAAAAAAAAIE/m7fBi6T1WzQ/s1600/modernAlert.js.jpg)
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.