How to find the version of the browser using javascript

Manideepgoud
Posted by Manideepgoud under JavaScript category on | Points: 40 | Views : 235
We use appVersion and userAgent to find the version of the browser.
<button onclick="myFunction()">Try it</button>
<p id="fun"></p>
<script>
function myFunction() {
document.getElementById("fun").innerHTML =
navigator.appVersion;
}
</script>


//similarly navigator.userAgent also displays version information of the browser.//

Comments or Responses

Login to post response