> For the complete documentation index, see [llms.txt](https://dicksonui.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dicksonui.gitbook.io/docs/guide/navigator.md).

# Navigator

### Window Navigator

The `window.navigator` object can be written without the window prefix like this.

```
mywindow=window()
navigator=window.navigator
```

Some examples:

* `navigator.appName`
* `navigator.appCodeName`
* `navigator.platform`

### Browser Cookies

The `cookieEnabled` property returns true if cookies are enabled, otherwise false:

#### Example

```
print(navigator.cookieEnabled)
```

### Browser Application Name

The `appName` property returns the application name of the browser:

#### Example

```
print(navigator.appName)
```

{% hint style="warning" %}
Strange enough, "Netscape" is the application name for both IE11, Chrome, Firefox, and Safari.
{% endhint %}

### Browser Application Code Name

The `appCodeName` property returns the application code name of the browser:

#### Example

```
print(navigator.appCodeName)
```

{% hint style="warning" %}
"Mozilla" is the application code name for both Chrome, Firefox, IE, Safari, and Opera.
{% endhint %}

### The Browser Engine

The `product` property returns the product name of the browser engine:

#### Example

```
print(navigator.product)
```

{% hint style="warning" %}
Do not rely on this. Most browsers returns "Gecko" as product name !!
{% endhint %}

### The Browser Version

The `appVersion` property returns version information about the browser:

#### Example

```
print(navigator.appVersion)
```

### The Browser Agent

The `userAgent` property returns the user-agent header sent by the browser to the server:

#### Example

```
print(navigator.userAgent)
```

{% hint style="warning" %}

### Warning !!!

The information from the navigator object can often be misleading, and should not be used to detect browser versions because:

* Different browsers can use the same name
* The navigator data can be changed by the browser owner
* Some browsers misidentify themselves to bypass site tests
* Browsers cannot report new operating systems, released later than the browser
  {% endhint %}

### The Browser Platform

The `platform` property returns the browser platform (operating system):

```
print(navigator.platform)
```

### The Browser Language

The `language` property returns the browser's language:

```
print(navigator.language)
```

### Is The Browser Online?

The `onLine` property returns true if the browser is online:

```
print(navigator.online)
```

### Is Java Enabled?

The `javaEnabled()` method returns true if Java is enabled:

```
print(navigator.javaEnabled())
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dicksonui.gitbook.io/docs/guide/navigator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
