There are several ways of identifying a browser, but by using below JavaScript code you can Indentify your browser.
<html>
<body>
<h1>Welcome Guest !</h1>
<hr>
<p>Your browser identifies as:<br>
<script language="JavaScript" type="text/javascript">
document.write(navigator.userAgent + ".");
</script>
</p>
</body>
</html>
You can get More details about the client's browser See the below Example:
<html>
<body>
<script type="text/javascript">
document.write("<p>Browser:
")
document.write(navigator.appName + "</p>")
document.write("<p>Browserversion:
")
document.write(navigator.appVersion + "</p>")
document.write("<p>Code:
")
document.write(navigator.appCodeName + "</p>")
document.write("<p>Platform:
")
document.write(navigator.platform + "</p>")
document.write("<p>Cookies
enabled: ")
document.write(navigator.cookieEnabled + "</p>")
document.write("<p>Browser's
user agent header: ")
document.write(navigator.userAgent + "</p>")
</script>
</body>
</html>