Navigator product Property - Javascript Browser Object Model

Javascript examples for Browser Object Model:Navigator

Description

The product property returns the engine name of the browser.

This property is read-only.

Return Value

A String, representing the engine name of the browser

The following code shows how to get the browser's engine name:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

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

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

<script>
function myFunction() {/*w  ww  . j  a  va  2s.com*/
    var x = "Browser's Engine Name: " + navigator.product;
    document.getElementById("demo").innerHTML = x;
}
</script>

</body>
</html>

Related Tutorials