Para la detección MSIE es posible que el uso de JavaScript:
// This function returns Internet Explorer's major version number,
// or 0 for others. It works by finding the "MSIE " string and
// extracting the version number following the space, up to the decimal
// point, ignoring the minor version number
<SCRIPT LANGUAGE="JavaSCRIPT">
function msieversion()
{
var ua = window.navigator.userAgent
var msie = ua.indexOf ("MSIE ")
if (msie > 0) // If Internet Explorer, return version number
return parseInt (ua.substring (msie+5, ua.indexOf (".", msie)))
else // If another browser, return 0
return 0
}
</SCRIPT>
A continuación se muestra un ejemplo de cómo llamar a cualquier lugar de su html:
<SCRIPT LANGUAGE="javascript">
if (msieversion() >= 0)
document.write ("This is Internet Explorer");
else
document.write ("This is another browser");
</SCRIPT>
http://support.microsoft.com/kb/167820 http://support.microsoft.com/kb/167820
Me gusta la simplicidad de esta respuesta. ¿Alguien tiene objeciones al respecto, porque aunque las otras respuestas son más exhaustivas (número de versión de portada, etc.) todo lo que necesito es el tipo de navegador. Pero cualquier problema conocido aquí. Por cierto, lo probé en FF y ¡dijo Netscape! – Duber
Lo probé en Chrome y también dice netscape: s –
Chrome, Firefox y Safari devuelven el nombre "Netscape". –