onclick不工作IE11(Windows 2016服务器)(onclick do not work IE11 (Windows 2016 server))

编程入门 行业动态 更新时间:2024-10-28 06:25:24
onclick不工作IE11(Windows 2016服务器)(onclick do not work IE11 (Windows 2016 server))

我是网络开发的新手,如果我在问题中遗漏了任何内容,请告诉我。

鉴于JS代码不适用于IE 11(Windows 2016 Server),它在其他浏览器上工作正常,并在我的屏幕上给我提醒。

<div class="col-xs-3 text-center">
  <a class="my_env_template dashboard-link" onclick="alert(123)">
    <span class="fa fa-2x dashboard-icon fa-clone" id="env_pref" aria-hidden="true"></span><br> Open Templates
  </a>
</div> 
  
 

预计:我期待屏幕上有警报。

请注意我使用默认设置运行Windows 2016服务器和IE,我没有在服务器或浏览器配置上进行任何更改。

I am new in web development, let me know if I missed anything in my question.

Given JS code do not work on IE 11 (Windows 2016 Server), it is working fine on other browsers and giving me alert on my screen.

<div class="col-xs-3 text-center">
  <a class="my_env_template dashboard-link" onclick="alert(123)">
    <span class="fa fa-2x dashboard-icon fa-clone" id="env_pref" aria-hidden="true"></span><br> Open Templates
  </a>
</div> 
  
 

Expected: I was expecting Alert on my screen.

Please note that I'm running Windows 2016 server & IE with default settings, I did not change anything on server or browser configurations.

最满意答案

检查javascript是否启用ie。 https://www.whatismybrowser.com/guides/how-to-enable-javascript/internet-explorer

Check javascript is enable in ie. https://www.whatismybrowser.com/guides/how-to-enable-javascript/internet-explorer

更多推荐

Windows,IE,class,电脑培训,计算机培训,IT培训"/> <meta name="description&

本文发布于:2023-07-27 17:57:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1293641.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   工作   onclick   Windows   server

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!