Enviado em 04/04/2012 - 13:11h
Pessoal tenho este script java, que redireciona o navegador IE para uma outra página html, mas gostaria de redirecionar somente os navegadores IE 6 e 7.
<SCRIPT LANGUAGE="javascript">
// esses alerts você tira, só foi pra testar
if (navigator.userAgent.indexOf("MSIE")!=-1)
if (document.documentElement && typeof document.documentElement.style.maxHeight!="undefined") {
alert("Internet Explorer 7");
location.href='http://www.pagina.html';;
}
else {
alert("Internet Explorer 6 ou menor");
location.href='http://www.pagina.html';;
}
</script>
Alguma dica?
Grato mesmo
Resolvido:
Grato mesmo:
Resolvido:
Alem da sua dica que fufa 10, descobri também:
if (navigator.userAgent.indexOf("MSIE 6")!=-1 || navigator.userAgent.indexOf("MSIE 7")!=-1)
Também descobri esta outra, que funciona 10:
<!--[if IE 9]><script type="text/javascript">alert("Versão Internet Explorer 9.0, você está sendo redirecionado");location.href='http://www.pagina.html';; </script><![endif]-->
Obrigado mesmo:
<SCRIPT LANGUAGE="javascript">
// esses alerts você tira, só foi pra testar
if (navigator.userAgent.indexOf("MSIE")!=-1)
if (document.documentElement && typeof document.documentElement.style.maxHeight!="undefined") {
alert("Internet Explorer 7");
location.href='http://www.pagina.html';;
}
else {
alert("Internet Explorer 6 ou menor");
location.href='http://www.pagina.html';;
}
</script>
Alguma dica?
Grato mesmo
Resolvido:
Grato mesmo:
Resolvido:
Alem da sua dica que fufa 10, descobri também:
if (navigator.userAgent.indexOf("MSIE 6")!=-1 || navigator.userAgent.indexOf("MSIE 7")!=-1)
Também descobri esta outra, que funciona 10:
<!--[if IE 9]><script type="text/javascript">alert("Versão Internet Explorer 9.0, você está sendo redirecionado");location.href='http://www.pagina.html';; </script><![endif]-->
Obrigado mesmo: