The role of the object, so all variables/functions declared in the global scope become properties and methods of the Window object;/PS: Attempting to access an undeclared variable throws an error, but by querying the Window object, you can know if
The judgment of mobile language version
Use Navigator.browserlanguage to get the Windows Phone language version, of course, the hateful Small mobile language version also has compatibility differences, compatible with Mozilla, and AppleWebKit
Some js Code, spare by yourself, master do not laugh at me. (Cross-browser basic events, browser detection, and judgment of the browser name, version number, and operating system) are very practical and convenient for your use. Interested friends
I recently learned something about the android browser plug-in: I need to know the following: 1. what is the plug-in 2. how to load plug-ins and create instances in the android browser 3 interaction between browser plug-ins and scripting
Whether in php or js, userAgent can return some information about the browser. Below I have sorted out some methods to use js to obtain the userAgent string to judge the browser and version.
Mobile phone language version judgment
Use navigator.
Get the browser version in PHP directly using http_user_agent can be, but to determine the specific browser, what version we need to judge each,
Example 1
The code is as follows
Copy Code
function Get_user_browser () {if
Abstract:There are already many documents and materials on the Internet about various browser models, but few of them can fully explain several concepts. Most of the information is outdated, and some content may no longer be applicable. In this
Introduction to mobile web development-browser and web development Browser
Some time ago, I learned about the mobile Web manual and thought that this kind of book is really needed. It is just a simple explanation of the most basic knowledge about
BOM: Browser object model, the browser object models, provides a content-independent object structure that can interact with the browser window.Browser Object : Refers to the BOM provided by a number of objects, including: Window, Navigator, screen,
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.