HTML DOM Window navigator Property (original) (raw)

Last Updated : 8 Jun, 2026

The HTML DOM Window navigator property is used to return a Navigator object. The navigator object contains information about the browser. This Navigator object contains methods and properties of the application which is run the script.

**Syntax:

var nav = window.navigator;

**Return Value: A Navigator Object.

**Example: This example shows how to get the Navigator Object of the document using this property.

HTML `

GeeksforGeeks

HTML | window navigator property

<button onclick="Geeks()">
    Click Here
</button>

<script>
    function Geeks() {
        console.log(window.navigator);
    }
</script>

`