In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "analyzing the Navigator object of JavaScript". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "analyze the Navigator object of JavaScript".
Navigator object
The Navigator object contains information about the browser.
Note: there is no common standard for Navigator objects, but all major browsers support it.
Navigator var txt = ""; txt + = "
Browser CodeName: "+ navigator.appCodeName +"
"; txt + ="
Browser Name: "+ navigator.appName +"
"; txt + ="
Browser Version: "+ navigator.appVersion +"
"; txt + ="
Cookies Enabled: "+ navigator.cookieEnabled +"
"; txt + ="
Browser Language: "+ navigator.language +"
"; txt + ="
Browser Online: "+ navigator.onLine +"
"; txt + ="
Platform: "+ navigator.platform +"
"; txt + ="
User-agent header: "+ navigator.userAgent +"
; document.getElementById ("demo") [xss_clean] = txt; / / output Browser CodeName: Mozilla Browser Name: Netscape Browser Version: 5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 Cookies Enabled: true Browser Language: zh-CN Browser Online: true Platform: Win32 User-agent header: Mozilla/5.0 (Windows NT 10.0 WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36Navigator object properties
You can use the following properties on the Navigator object:
Property description appCodeName returns browser code name appName returns browser name appVersion returns browser version information cookieEnabled determines whether cookiegeolocation returns Geolocation objects that can be used to locate the user's location language returns the browser's language onLine determines whether the browser returns online platform returns the browser's platform product returns the browser's engine name userAgent returns the browser's user agent header Navigator object method sent by the browser to the server
You can use the following methods on Navigator objects:
The method description javaEnabled () specifies whether the browser has JavataintEnabled () enabled and has been removed in JavaScript version 1.2. Specify whether the browser has enabled data pollution thank you for reading, the above is the content of "analyzing the Navigator object of JavaScript". After the study of this article, I believe you have a deeper understanding of the problem of analyzing the Navigator object of JavaScript, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.