Navigator appVersion Property - Javascript Browser Object Model

Javascript examples for Browser Object Model:Navigator


The appVersion property returns the version information of the browser.

This property is read-only.

Return Value

A String, representing the version information of the browser

The following code shows how to get the version of your browser:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>

<button onclick="myFunction()">Test</button>

<p id="demo"></p>

function myFunction() {/*from   w ww  .ja  va  2  s.  c  o  m*/
    var x = "Version info: " + navigator.appVersion;
    document.getElementById("demo").innerHTML = x;


Related Tutorials