Below is a code snippet used in the legacy application I am currently working on.
var x=confirm(\"Some Text\");
if(x)
//Call method A
else
// Call method B
Remove any ad blocker extension installed to your chrome and try again. Sometimes on applications which have large user base, a few users may mark pop up as ads. This will in turn block pop up/Confirm/Dialogue/Alert for all users who have that extension installed.
I had this problem once. Ad Block extension blacklisted alerts in my website.
NOTE: After removing extension, please close all instance of chrome. Requires a complete restart of chrome