JavaScript works under Firefox but does not work under IE

后端 未结 1 2013
一生所求
一生所求 2021-01-27 16:01

I am having the following HTML file protected through JavaScript.

It works fine with Firefox, howover, when it is opened with IE, the JavaScript seems not get invoked. T

相关标签:
1条回答
  • 2021-01-27 17:03

    IE 8 and above makes prompt an unsafe method, which may be ignored or called with a security confirmation, as set in advanced properties of IE by the user. (IE uses activeX in window.prompt)

    Security updates may also apply this behavior to IE7.

    Get the input from an input field instead of a prompt, at least in IE.

    0 讨论(0)
提交回复
热议问题