How to switch off JavaScript programmatically only for Internet Explorer 7?

此生再无相见时 提交于 2019-12-02 10:06:20

You can check if ($.browser.msie && $.browser.version < 8) and not run your code.

Use conditional comments.

http://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx

<![if !(IE 7)]>
    // Script tags here
<![endif]>

You can´t turn JavaScript off. You can however exclude IE7 by using Downlevel-revealed Conditional Comments.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!