How to find the name of the browser using javascript

Manideepgoud
Posted by Manideepgoud under JavaScript category on | Points: 40 | Views : 190
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>

Comments or Responses

Login to post response