Check the browser type by using the navigator.appName : appName : Navigator JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Navigator » appName »

 

Check the browser type by using the navigator.appName

















<html>
<head>
<script language="JavaScript" type = "text/javascript">
<!--
if (navigator.appName == "Microsoft Internet Explorer")
{
 alert("Your browser is Microsoft Internet Explorer.");
}
else if (navigator.appName == "Netscape")
{
 alert("Your browser is Netscape Navigator.");
}
else
{
 alert("You are not using Netscape Navigator or Internet Explorer.");
}
//-->
</script>
<title>Find Browser Name</title>
</head>
<body>
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Navigator
» appName