Can anyone help with some alternative of confirm() function in JavaScript. In my legacy application this function is working fine in Internet explorer but has stopped working in chrome & Firefox.
Asked
Active
Viewed 429 times
0
-
1There is no reason for `confirm()` to stop working. – VLAZ Mar 02 '22 at 19:05
-
1Please share a minimal reproducible example so we can help debug. `confirm()` works just fine for me in Chrome & Firefox. – mykaf Mar 02 '22 at 19:05
-
1`alert()`/`confirm()`/`prompt()` [stopped working a while ago for cross-origin iframes in Chrome](https://stackoverflow.com/questions/68492434/javascript-dialogs-alert-confirm-and-prompt-in-cross-origin-iframe-does-n). – Ivar Mar 02 '22 at 19:15
-
Does this answer your question? [is there any alternative of Javascript confirm?](https://stackoverflow.com/questions/37963696/is-there-any-alternative-of-javascript-confirm) – Ivar Mar 02 '22 at 19:15
-
you can use an HTML dialog box, you can use the Sweet Alert plugin. – Barmar Mar 02 '22 at 19:51