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 can understand, I hope this article will help you.
Cross-browser basic ev
When we log on to some sites, ie browser sometimes appears "your browser does not support cookies" prompts, resulting in logon failure. Here is a collection of solutions for this problem:
From the Tools menu, choose Internet Options. Click the Privacy tab. Click the Advanced button to set the following steps. Setup is complete, restart IE. (Turn off IE reopen again)
1: The first step
2: The second
Today, while watching the demo, CSS style found in the-webkit-text-size-adjust:none; After the Niang, understand the role of this style is: To solve the Chrome browser, set less than 12px font size problem.Examples are as follows:P1 {font-size:11px;};P2 {font-size:12px;}When opened with chrome, the font size of the two paragraphs is as large. This is because the Chrome browser will change font size less tha
1. We open the mobile phone Baidu browser into the following figure to find the "menu" opened after the entry
2. After entering, we click on the left to slide the page, and then open it into the details below.
3. Then there is a "no trace" option, where we click on it to open.
4. After our browser's no trace opened the success of the following figure shows
Good to this our Baidu bro
1, as long as Baidu search download cheetah browser after we download a ticket to rob it.
2, then click on the "Ticket" in the browser after we click "Booking Assistant Speed version." If you can not use our account click "Original 12306 booking" as shown in the following figure.
4, then we find you in the 12306 website registered user name (if not can go to 12306.cn to register)
Tip: If
div {background-color:red\0; /* IE 8/9*/background-color:blue\9\0; /* IE 9*/*background-color:green; /* IE 7*/_background-color:gray; /* IE 6*/}Note the order in which the Csshack is written:1.BACKGROUND-COLOR:RED\0;IE8 and IE9 are all supported;2.background-color:blue\9\0; only IE9 support;(1) Distinction FF (IE8) and IE6 IE7Backgorund:orange; FF and IE8 background colors will be orange*backgorund:red; IE6 and IE7 background colors will be red(2) Distinguishing FF (IE8) with IE6 and IE7Backgrou
,milliseconds) calculates an expression at a specified time interval;SetInterval (Function,millisenconds,[arguments]) invokes a function after a specified time interval;SetTimeout (expression,milliseconds) calculates an expression after the timer is exceeded;Stetimeout (Function,milliseconds,[arguments]) calls a function after the timer is exceeded;Print () to bring up the printing dialog box;Find () Brings up the Lookup dialog box;Properties and methods under window can be called using window.
Press Ctrl+shift+del shortcut to open the system's task manager as shown below.
In the Task Manager window, we click to open the Process option. Then, some software that accounts for large memory is shut down first, ending their process.
Method Two, if the above does not open 360 security guards, and then we click on the "Manual service" function. Search "360 browser often crashes" find the solution and click a button to fix it.
Of
Since the 3Q War 360 browser useragent has become ie, the common method of judgment is also ineffective, so have to change the way.
On page 360, press F12, pull up the debugging window, analyze the Navigator and window two objects, and finally find a value that can be used to identify 360 browsers.
The test results let us down.
Keep looking (The following code is available in the 360 security browsers 5 and 6 versions)
)
Window.navigator me
Normally, the browser caches the page. In this case, you can access the page just after exiting. For example, you can access the page just cached after exiting, in some cases, this is not safe enough. The solution to the problem is as follows:
Response. setheader ("cache-control", "No-Cache"); // forces caches to obtain a new copy of the page from the origin serverResponse. setheader ("cache-control", "No-store"); // directs caches not to store the pa
People usually do not know how to choose the browser when using the computer, what browser easy to use it? Here's a little story to tell you. In fact, each mainstream browser has its own advantages and disadvantages, the most suitable for their own is the best browser, no one is absolutely satisfied with the
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) {
var UA = Navigator.userAgent.toLowerCase (). toString ();
To determine if the IE kernel is not a version of IE
if ((Ua.indexof (' 360ee ') >-1) | | (Ua.indexof ('
Determine whether the browser is closed or refreshed (ultra-accurate) based on JavaScript. The javascript Browser
This article is a summary of some of the core content, I personally feel helpful to everyone, the specific content can be seen below:
Only onload is executed when the page is loaded.When the page is closed, only onunload is executed.When the page is refreshed, execute onbeforeunload first, then
introduction of QQ Browser:
QQ Browser is one of the more important products Tencent, QQ browser 7 and QQ browser 8, the use of single core mode, set Super Small installation package and super stability, access to the Web page speed has been further optimized. Formal external version will be intelligent support IE ker
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 browser kernel, see the examples in this article. Share it with you fo
The JavaScript implementation is made up of 3 parts: Core (ECMAScript), Document Object Model (DOM), Browser object model (BOM)BOM (Browser object model) browser objects modelsThe BOM defines the interface for JavaScript to manipulate the various features of the browser, providing access to various functional parts of
Baidu Browser How to set the default browser? Many friends who are just beginning to use, may not know very well. This article mainly teaches you how to set the Baidu browser as the default browser, and if you want to replace the other default browser, this article is also a
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.