JavaScript navigator appName property

The navigator.appName property in JavaScript represents the name of the browser used to run the current script. It is a read-only property that returns a string value.

Here is an example of how to use the navigator.appName property:

// check the name of the current browser
if (navigator.appName == "Microsoft Internet Explorer") {
  // do something specific for Internet Explorer

In the above code, we are checking the value of the navigator.appName property and checking if it is equal to “Microsoft Internet Explorer”. If it is, we can execute some code that is specific to Internet Explorer.

Note that the value of the navigator.appName property may vary depending on the browser being used. For example, it may return “Netscape” for Mozilla Firefox, “Google Chrome” for Google Chrome, or “Safari” for Apple Safari.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

%d bloggers like this: