There are cases where we need to identify the browser that the user is currently using. And there are many ways to do it as well. One common way is using javascript.
Below is a script which you can use to achieve the above requirement.
<html>
<head>
<title>Detecting Browser</title>
<script language="javascript">
function DetectBrowser()
{
var val = navigator.userAgent.toLowerCase();
if(val.indexOf("firefox") > -1)
alert("firefox");
else if(val.indexOf("opera") > -1)
alert("opera");
else if(val.indexOf("msie") > -1)
alert("msie");
else if(val.indexOf("safari") > -1)
alert("safari");
}
</script>
</head>
<body onload="DetectBrowser()">
</body>
</html>

