This is weird, The following line of javascript:
alert("test");
gives the following error in chrome:
Uncaught TypeError: Property 'alert' of object [object DOMWindow] is not a function
It also breaks when using a prompt. Oddly it works in firefox. Any ideas?
Go to Settings > System > Notifications & actions and make sure the Notifications option is toggled on. Afterward, scroll to the Get notifications from these senders section and make sure Google Chrome is toggled on.
The reason alert() does not work is because previously you have checked "prevent this page from creating additional dialoug" checkbox. lets take a look at this code. There will be two alert boxes if you run the code.
Do you have a another pop up blocker plug-in installed on Chrome? If you do, disable/remove it and see if the error goes away.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With