The user agent string userAgent can implement four identification functions: String useragent
Definition
User proxy string: navigator. userAgent
The HTTP specification clearly stipulates that the browser should send a brief user proxy string,
Js identifies different browsers Based on userAgent for judgment, jsuseragent
Check the browser, pay attention to the browser judgment order, mainly based on userAgent for judgment.
// Check the browser var client = function () {var engine = {ie: 0,
11.28 limit a directory to prevent PHP parsingThis section should be used to optimize settings for static file directories or writable directories, and to prevent malicious attacks by restricting resolution/access to improve security.To edit a
This section describes how to identify different browsers in js Based on userAgent. If you need it, you can refer to the browser detection module. Note that the browser judgment sequence is mainly based on userAgent.
// Check the browser var
http://www.lukepaynesoftware.com/articles/programming-tutorials/changing-the-user-agent-in-a-web-browser-control/Changing the User Agent in a Web browser controlChanging the User Agent for C # ProjectsA short time ago I completed a project for a
Go to http://www.51obj.cn /? P = 368
I used to check the navigator. useragent string to determine the browser type.
Switch (navigator. useragent. tolowercase (). indexof ("MSIE") // Firefox | opera | safari | MSIE{Case (-1 ):Alert ("dom Browser ");
Best ie version check method, ie version check
Prerequisites: real-time performance of NodeList
When nodelist is obtained using document. getElementsByTagName, document. forms, document. images, and other methods, the content in nodelist will be
Check Discuz! When the source code is found, a piece of browser verification code is still classic:Copy codeThe Code is as follows:Var BROWSER = {};Var USERAGENT = navigator. userAgent. toLowerCase ();Alert (USERAGENT );BROWSER. ie = window.
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.