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';
}