Many believe that the javascript navigator
function can be used to retrieve all browser-related properties of a particular machine. I attempted to do so myself, which you can find here:
<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"Name is " + navigator.appName +
"<br>Code name is " + navigator.appCodeName;
</script>
</body>
</html>
When attempting to extract the browser name, I noticed that when opened in Chrome, the value returned for navigator.appName
was Mozilla. So my question remains: how can one retrieve the app name as 'Chrome' instead?