JS: Browser Info, Navigator Object

By Xah Lee. Date: . Last updated: .

H's how to find info about browser, such as if cookies is on, java is installed, or browser version.

Here's your browser status:

Here's the code.

<div id="outputBox13302"></div>
{
const outputBox13302 = document.getElementById("outputBox13302");

const output =
`<ul>
<li><b>appName:</b> ${navigator.appName}</li>
<li><b>appCodeName:</b> ${navigator.appCodeName}</li>
<li><b>appVersion:</b> ${navigator.appVersion}</li>
<li><b>Platform:</b> ${navigator.platform}</li>
<li><b>product:</b> ${navigator.product}</li>
<li><b>userAgent:</b> ${navigator.userAgent}</li>
<li><b>cookieEnabled:</b> ${navigator.cookieEnabled}</li>
<li><b>javaEnabled:</b> ${navigator.javaEnabled()}</li>
</ul>`;

outputBox13302. innerHTML = output;
}

The object navigator stores info about browser.

DOM How-To


Web Scripting Overview


HTML Input


Web Scripting Examples


Web Scripting Misc


jQuery


node.js

Like it? Help me by telling your friends. Or, Put $5 at patreon.

Or, Buy JavaScript in Depth

If you have a question, put $5 at patreon and message me.

Web Dev Tutorials