We use
navigator.appname and
navigator.appcodename to find the out name of the browser.
<p id="fun"></p>
<script>
function myFunction() {
document.getElementById("fun").innerHTML =
"Name is " + navigator.appName +
"<br>Code name is " + navigator.appCodeName;
}
</script>