Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is JavaScript window navigator?

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail what is JavaScript window navigator, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

The window.navigator object contains information about the visitor's browser.

1. Window Navigator

Window.navigator objects can be written without the window window prefix (navigator.XXXX).

II. Attributes

1. Browser Cookies

The cookieEnabled property returns true if Cookie is enabled, otherwise false.

Project Navigator object

The cookieEnabled property returns true if cookies is enabled:

Document.getElementById ("demo") [xss_clean] = "navigator.cookieEnabled is" + navigator.cookieEnabled

two。 Browser application name

The appName property returns the application name of the browser.

Document.getElementById ("demo") [xss_clean] = "navigator.appName is" + navigator.appName

Note:

"Netscape" is the application name for IE11, Chrome, Firefox, and Safari.

3. Project browser application code name

The appCodeName property returns the application code name of the browser.

Document.getElementById ("demo") [xss_clean] =

"navigator.appCodeName is" + navigator.appCodeName

"Mozilla" is the name of the Chrome, Firefox, IE, Safari and Opera application code.

4. Browser engine

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

Document.getElementById ("demo") [xss_clean] =

"navigator.product is" + navigator.product

5. Browser version

The appVersion property returns version information about the browser.

Document.getElementById ("demo") [xss_clean] = navigator.appVersion; on what is JavaScript window navigator to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report