HTML | Navigator appVersion Property
The Navigator appVersion Property is a read-only property and it returns a string which represents the version information of the browser. It is used for returning the information related to the version of the browser.
Syntax:
navigator.appVersion
Below program illustrates the Navigator appVersion Property :
Getting the version information of the browser.
<!DOCTYPE html> <html> <head> <title> Navigator appVersion Property in HTML </title> <style> h1 { color: green; } h2 { font-family: Impact; } body { text-align: center; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>Navigator appVersion Property </h2> <p> For returning the codename of the current browser, double click the "Return Browser Version" button: </p> <button ondblclick="version()"> Return Browser Version </button> <p id="BrowserVersion"></p> <script> function version() { var v = "Browser Version : " + navigator.appVersion; document.getElementById("BrowserVersion").innerHTML = v; } </script> </body> </html> |
Output:

After clicking the button

Supported Browsers: The browser supported by Navigator appVersion are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari
Recommended Posts:
- HTML | Navigator userAgent Property
- HTML | Navigator platform Property
- HTML | Navigator language Property
- HTML | Navigator geolocation Property
- HTML | Navigator product Property
- HTML | Navigator appName Property
- HTML | Navigator cookieEnabled Property
- HTML | Navigator appCodeName Property
- HTML | Navigator onLine Property
- HTML | DOM Navigator taintEnabled() Method
- HTML | Navigator javaEnabled( ) Method
- Web Vibration API | Navigator.vibrate() Method
- HTML | DOM name Property
- HTML | DOM value Property
- HTML | DOM dir Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : ManasChhabra2



