Ver Mensaje Individual
  #7 (permalink)  
Antiguo 21/02/2009, 20:05
eseceve
 
Fecha de Ingreso: febrero-2009
Mensajes: 44
Antigüedad: 15 años, 3 meses
Puntos: 2
Respuesta: redireccionar dependiendo navegador

Código HTML:
<script language="JavaScript">
<!--
//Sacar un mensaje según el explorador
if (navigator.appName == "Netscape"){
document.write("Hola, estás viendo este manual con el Netscape. Enhorabuena"}
else if (navigator.appName.indexOf("Explorer") != -1) {

document.write("Vaya, estás viendo este manual con el Explorer. Así que fomentando el monopolio de Microsoft."}
}
//-->
</script> 
Código HTML:
function detectar_navegador() {
var navegador = navigator.userAgent;
if (navegador.match("Firefox")) { window.location = 'index_firefox.html'; }
if (navegador.match("MSIE")) { window.location = 'index_IE.html'; }
if (navegador.match("Opera")) { window.location = 'index_opera.html'; }
window.location = 'index_standard.html';
}