I've been thinking about customizing the appearance of typical user interaction functions in javaScript for a long time - alert(), confirm() and prompt ().

Indeed, they are very convenient to use, but different in different browsers and very unsightly.

Finally, I got my hands on it. Click on the link below...

Test Confirm, Prompt & Alert on the basis of promises.