简体   繁体   English

.click()函数在IE中给出拒绝访问错误

[英].click() function give access denied error in IE

document.getElementById(ButtonClickId).click(); 的document.getElementById(ButtonClickId)。单击();

above code working fine in the local environment but when I host my application it gives me access denied in IE. 上面的代码在本地环境中工作正常,但是当我托管我的应用程序时,它会让我在IE中拒绝访问。 for chrome it's working for me 对于铬,它对我有用

document.getElementById(ButtonClickId).click(); 的document.getElementById(ButtonClickId)。单击();

It's Browser version issue. 这是浏览器版本问题。 In local IE browser was IE- Edge and on Live it was IE 7. That is the issue code was not working. 在本地的IE浏览器是IE-Edge和在Live它是IE 7.这是问题代码无法正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM