When designing your web application, you would like the user to confirm some actions sometimes. For example, you may want the user to confirm deletion of his data. There is
window.confirm that can have similar behaviour and your application’s look & feel. It has similar API to
window.confirm so migration should be really easy.