Get application name from navigator (navigator.appName)
<html>
<head>
<script language="JavaScript">
function function1() {
var m = navigator.appName;
alert("The name of your browser is "+'"'+m+'"');
}
</script>
</head>
<body >
<input type="button" value="Click here" onClick="function1();">
</body>
</html>