Skip to content Skip to sidebar Skip to footer

Javascript Confirm Not Working In Chrome

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 It was working fine til

Solution 1:

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

Post a Comment for "Javascript Confirm Not Working In Chrome"