SoFunction
Updated on 2025-03-06

Use js to determine whether it is the implementation code of 360 browser

Use js to determine whether it is the implementation code of 360 browser

Updated: January 15, 2015 14:40:27 Submission: mdxy-dxy
This article mainly introduces the implementation code of using js to determine whether it is 360 browser. Sometimes we need to determine whether it is 360 browser. Including Baidu Alliance background, there are such prompts. If you need it, please refer to it.

The following code is available in 360 Safe Browser versions 5 and 6

<script>
var check360browser={
//If it is 360 browser"ok":function (){
//Here is the code after judging that 360 is successfulalert('js -> 360');
},
"try360SE":function (callback) {  
var ret = false,    
img = new Image();  
 = 'res:///2/2025';  
 = function() {   
ret = true;  
}  
setTimeout(function() {   
if(ret==true){
();
}else{
ret=check360browser.try360SE_2();
if(ret){
();
}
}
}, 100); 
},
"try360SE_2":function (){  
var is360 = false;  
if(('Chrome')!=-1){ 
if(){ 
 
}else{ 
return true; 
} 
} 
}
}
check360browser.try360SE();
</script>
  • 360 Browser

Related Articles

  • Example of method to compare whether two objects are the same in js

    This article mainly introduces the method of comparing whether two objects are the same in JS. It analyzes the related operation techniques such as traversal and judgment of JS object in detail based on the example form. Friends who need it can refer to it
    2019-09-09
  • How to use javascript to receive json information and process it

    This article mainly introduces how to use JavaScript to receive json information and process it. The example code is introduced in this article in detail, which has certain reference learning value for everyone's study or work. Friends who need it, please learn with the editor below.
    2020-08-08
  • Introduction and implementation code of pure js web artboard (Graphics)

    Today I need to draw a graph on the web page. I thought of using JS, after learning, searching online, and sorting and optimizing the following code. Note that I do not use HTML5 canvas, but use pure js. Friends who need to know can refer to it.
    2012-12-12
  • How to terminate the program by js? Return cannot be replaced by jfslk

    alert(3) is just a program that is not written in the function. Think about it, how to terminate js? jfslk can also achieve the same effect (terminate the js program)
    2013-05-05
  • JS multiple asynchronous requests execute next implementation parsing in order

    This article mainly introduces multiple asynchronous requests for js. Next is implemented in order. The article introduces the example code in detail, which has certain reference value for everyone's learning or work. Friends who need it can refer to it.
    2019-09-09
  • Mini Program Forwarding Exploration Example

    This article mainly introduces the mini program forwarding exploration example. The editor thinks it is quite good. Now I will share it with you and give you a reference. Let's take a look with the editor
    2019-02-02
  • One article teaches you how to use the expand operator in JavaScript

    The spread operator allows an expression to be expanded somewhere. The following article mainly introduces the relevant information about how to teach you how to use the spread operator in JavaScript through an article. Friends who need it can refer to it.
    2022-10-10
  • Four ways to remove null values ​​and empty objects in JavaScript objects

    I encountered a problem during development and needed to remove the null values ​​and null objects in the object. Therefore, this article mainly introduces to you four ways to remove the null values ​​and null objects in JavaScript objects. Friends who need it can refer to it.
    2023-09-09
  • In-depth and easy-to-understand the principle of base64 encoding in JavaScript

    Today, I opened the old project and found that there are many plug-ins related to pictures that use base64 to display pictures. When talking about base64, my mind is full of thoughts, and my thoughts are echoing. Base64, the beauty and beauty meet each other. This article mainly records the problems encountered in work and summarizes them. If there is any inappropriateness, please correct me.
    2023-02-02
  • js+canvas implements verification code function

    This article mainly introduces the verification code function of js+canvas in detail. The sample code in the article is introduced in detail and has certain reference value. Interested friends can refer to it.
    2018-07-07

Latest Comments