Skip to content
Related Articles

Related Articles

HTML DOM Window navigator Property

View Discussion
Improve Article
Save Article
  • Last Updated : 27 Jul, 2020

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


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.


<body style="text-align:center;">
    <h1 style="color:green;">
        HTML | window navigator property
    <button onclick="Geeks()">
        Click Here
        function Geeks() {


  • Before Clicking the Button:

  • After Clicking the Button: In the console, the navigator object can be seen.

Supported Browsers:

  • Google Chrome
  • Edge
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!