Error on using alert in Javascript (Property 'alert' of object is not a function)

后端 未结 6 593
北恋
北恋 2021-01-11 12:59

I am just trying to use alert and put a string variable inside the alert and get an error:

Uncaught TypeError: Property \'alert\' of object [Object Window] i         


        
6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-11 13:21

    I had that error message due to an alert() blocked by my pop-up-blocker.

提交回复
热议问题