Javascript Alert Boxes Not Working In Chrome
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 fu
Solution 1:
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.
Solution 2:
Is your Javascript enabled in the Chrome options? Other thing is any other js library included which might change default js behaviour?
Solution 3:
As epascarello said its because of popup blocker plugin and I faced this problem with my localhost websites and prompt method.
So i fixed it by adding my localhost url to popup blocker's whitelist: http://localhost
Post a Comment for "Javascript Alert Boxes Not Working In Chrome"