The Navigator object contains basic information about the Web browser (such as name, version, operating system, etc.)
You can refer to the object by Window.navigator and use its properties to read the client base information
5 Main properties of Navigator:
Name of the Appname:web
+
-
-
-
taintenabled
has been abandoned. Indicates whether the variable is allowed to be modified (taint). reserved for backwards compatibility with Netscape Navigator 3
4.0+
1.0+
-
7.0+
userAgent
User agent string for the browser
3.+
1.0+
1.0+
7.0+
Userlanguage
Default language for the operating
The Navigator ObjectNavigation objectThe JavaScript Navigator object contains all information about the visitor's browser. We are going to look at two properties of the Navigator object:The JS navigation object contains all information about accessing this browser. Let's tak
The Navigator browser object that contains the version information of the currently used navigator. Displays information about the browser currently used. When the Javascript client is running, the engine automatically creates a navigator object.
For more details, refer to t
The Navigator Object
Navigating objects
The JavaScript Navigator object contains all information about the visitor ' s browser. We are going to look at two properties of the Navigator object:
The JS navigation object contains all the information about accessing this browser.
Navigator Browser object that contains the version information for the navigator you are using. Reflects the information of the browser currently in use. The JavaScript client runtime engine automatically creates the Navigator object.
More detailed information can be found i
Navigator ObjectThe Navigator object contains information about the browser and is typically used to detect the version of the browser and operating system.Object properties:To view the browser name and version, the code is as follows:UserAgentDOCTYPE HTML>HTML>Head>Metahttp
Location ObjectLocation is used to get or set the URL of the form and can be used to resolve URLs.Grammar:Location. [Properties | method]Location Object Properties Diagram:Location Object properties:Location Object method:Gets the URL of the currently displayed document and outputs:1 Navigator ObjectObject properties:Use the Navigator object to view browser-relat
Document directory
Use JavaScript in HTML
Scripting Event Handlers)
Skills and Techniques
Use JavaScript in HTML
JavaScript can be embedded in HTML in two ways:
When used as statements and functions, use SCRIPT to mark
When used as an event handler, use HTML to mark
SCRIPT tag
Use the SCRIPT tag to embed the SCRIPT in HTML. format:
The LANGUAGE attribute is used as an option to specify the script LANGUAGE. Its usage is as follows:
That's all, folks.
In example 1, the page is display
The Navigator Object
Navigation object
The JavaScript Navigator object contains all information about the visitor's browser. We are going to look at two properties of the Navigator object:
The JS navigation object contains all information about accessing this browser. Let
Use the Navigator object to check the plugin in the browser, implementing the code below.1 //ie4+, Firefox, Chrome, Safari, Opera, using navigator detection plug-in, name for the plug -in Names2 functionHasplugin (name) {3Name =name.tolowercase ();4 for(vari = 0; i ) {5 if(Navigator.plugins[i].name.tolowercase (). IndexOf (name) >-1) {6 r
I. Introduction
HTML5 provides the geolocation attribute for window. navigator to obtain the geographic location of the current user based on the browser.
Window. Navigator. geolocation provides three methods:
Void getcurrentposition (onsuccess, onerror, options );// Obtain the current user locationInt watchcurrentposition (onsuccess, onerror, options );// Contin
platforms. This makes the complexity and differentiation of browsers in the Android Market. (For example, the built-in browsers of two different mobile phone manufacturers have different optimizations for the same web style)
Android Browser
1. Android Webkit
A smartphone operating system requires a browser. Therefore, the original Android provides its own Webkit
Boot to browser (fire OS, Chrome OS, Web OS) and browser containerizedThis article attempts to illustrate 2 different technical scenarios: one is to launch to the browser (e.g. fire OS, Chrome OS, HP Web OS, Tizen Web Rutime), and
1.win key +e key search Locc.dll. Delete Locc.dll, if not deleted, forcibly removed with software.2. Clean up the registry: Win+r, enter regedit, find in the Edit menu or ctrl+f find the Frist home page or state page to find the URL of the hijacking jump to modify or delete.3. Search the taskbar under the system disk and delete the shortcut containing the browser.4. After the above experience, do not use the online download of the Pony Activation tool
Cross-origin calling of Embedded Web browser pages: Embedded Web browser pages
My problems:
The JS method on worker can be called normally.
Problem Analysis:From the perspective of JS, this is a cross-domain question. host.htmland iframe.html are not in the same domain;The JS solution to cross-origin problems is actual
Error behavior:
The following Tumen Open Lenovo Web site appears "show Web browser has modified this page to help cross-site scripting"
This reason is due to IE browser caused by Oh, so we need to deal with a simple
The solution is as follows
1. After clicking "Tools" in IE
Preface
This is an introductory article that gives an overview of the internal operations of WebKit and Gecko and is the result of extensive research by Israeli developers Tally Garchill. Over the past few years, she has looked at all publicly published data about the internal mechanism of the browser (see Resources) and spent a lot of time poring over the source code of the Web
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.