4

I have not much experience in web development and I have some problems with action confirmation on my site admin panel. As I know, JS have standard confirmation dialog etc. So should I use this to confirm user action or it will be better to write custom modal window ?

Kate Belova
  • 185
  • 1
  • 1
  • 6

1 Answers1

4

Better to avoid usage alert() prompt() and confirm and use custom dialogs. There are many libraries that you can use instead of js dialogs (for example: Angular Material or Bootstrap Modals)

Also check this fresh article: Chromium policy on JavaScript dialogs

Did you already check this?

Community
  • 1
  • 1
Johan Willfred
  • 811
  • 7
  • 14
  • A pretty good library that I can't stop using is sweet alert [ http://t4t5.github.io/sweetalert] . It provides callback function on confirm/cancel/close. – Antoine Thiry Apr 05 '17 at 06:31