如何将所有IE用户重定向到一个新页面 [英] How to Redirect all IE users to a new page

查看:285
本文介绍了如何将所有IE用户重定向到一个新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的程序员是在度假,所以我需要你的帮助!我发现,对IE用户一个错误页面。我想所有IE用户重定向到另一个页面。

My programmer is on vacation so I need your help! I discovered a page that has a bug for IE users. I want to redirect all IE users to a different page.

我怎样才能做到这一点?我找遍了所有通过谷歌和#2,并不能找到答案。 (我发现了一些脚本,并尝试过,但没有工作)。

How can I do this? I searched all through Google and Stackoverflow and cannot find an answer. (I found some scripts, and tried them, but none worked).

推荐答案

尝试:

<!--[if IE]>
<script type="text/javascript">
window.location = "http://www.google.com/";
</script>
<![endif]-->

这篇关于如何将所有IE用户重定向到一个新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆