Determine the browser version and the browser kernel, and determine the browser kernel
If (! Browser. ie &&! Browser. mac) {var UA = navigator. userAgent. toLowerCase (). toString (); // determines whether it is a non-IE version in the IE kernel if (
How to determine the browser version and the browser kernel using js
This article mainly introduces how to judge the browser version and kernel of the browser by js, which can be used for judgment of various browsers and has some reference value.
This article mainly introduces how to judge the browser version and kernel of the browser by js, which can be used for judgment on various browsers and has some reference value, for more information about how to determine the browser version and the
This article mainly introduces how to judge the browser version and kernel of the browser by js, which can be used for judgment on various browsers and has some reference value, for more information about how to determine the browser version and the
In the front-end development of the Web site, browser compatibility problem has let us rush, the birth of Chrome did not know to give us a lot of trouble. Browser compatibility is the first problem to be solved by the front-end development framework,
Do you know how many browsers are available in the world? In addition to the four well-known browsers, ie, Firefox, opera, and Safari, there are nearly browsers in the world.
A few days ago, the browser family gave birth to a little prince, Google's
A few days ago, the browser family gave birth to a little prince, Google's Chrome browser. Because of the birth of Chrome, although he is still a little guy, no one dares to underestimate him. In the future, we often say that the browser's "Four
Do you know how many kinds of browsers are in the world? In addition to our well-known Internet Explorer, Firefox, Opera and Safari, there are hundreds of browsers in the world.A few days ago, the browser family had just been born a little prince,
This article is an example of how JS determines the browser version and the browser kernel. Share to everyone for your reference. The implementation methods are as follows:
Copy Code code as follows:
if (!browser.ie &&!browser.mac) {
if(!browser.ie &&!)Browser.mac) {varUA =navigator.userAgent.toLowerCase (). toString (); //determine if it is not a non-IE version under IE kernel if((Ua.indexof (' 360ee ') >-1) | | (Ua.indexof (' 360se ') >-1) | | (Ua.indexof (' SE ') >-1) | |
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.