Get the version of your browser:
var x = "Version Info: " + navigator.appVersion;
Click the button to display the version of your browser.
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {//from w w w .j a v a 2 s . co m var x = "Version info: " + navigator.appVersion; document.getElementById("demo").innerHTML = x; } </script> </body> </html>
The appVersion property returns the version information of the browser.
This property is read-only.