Discover list of different browsers, include the articles, news, trends, analysis and practical advice about list of different browsers on alibabacloud.com
Currently, users can select many different browsers, but many users are not very familiar with the browser upgrade mechanism. Let's start with IE. IE6 is indeed lagging behind the existing browsers in all aspects, but this does not affect the majority of Internet users to continue using IE6 browsers. While Microsoft is
Category: Work
Although the RFC specification for the HTTP protocol does not specify the maximum character length limit for URLs, in practice there is always a limit in the browser or server. The characters in this article refer to ASCII characters.Microsoft Internet Explorer:The maximum length limit for URLs is 2,083 characters on the Microsoft Help website, which says before IE7 (including IE7) browser.Firefox:For Firefox 1.5.x, the address bar can display a
SetTimeout and setInterval are two amazing methods of window objects. They are used to call a function or code at a scheduled or delayed time. (New users may think that setTimeout and setInterval are javascript Functions, which is incorrect. Beginners can easily confuse javascript Object functions with DOM object methods .)
Let's start with a piece of code. Let's guess what the results will look like in various browsers?
The Code is as follows:
Fu
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, gecko: 0, webkit: 0, khtml: 0, opera: 0, ver: null }; var browser = {// viewer ie: 0, firefox: 0, safari: 0, konq: 0, opera: 0, chrome: 0, ver: null}; var ua =
The XMLHttpRequest Object is the core of AJAX functionality, and the development of an AJAX program must begin with an understanding of the XMLHttpRequest object.Understanding the XMLHttpRequest object begins with creating a XMLHttpRequest object, using different methods for creating XMLHttpRequest objects in different browsers:First look at the way IE creates XMLHttpRequest objects (Method 1):var xmlhttp=a
The encoding format that the browser can correctly recognize. As long as the corresponding Content-Disposition is set according to this encoding, there should be no garbled Chinese file names. First, the Content-Disposition value can have the following encoding formats: 1. urlencode: Conte... SyntaxHighligh
The encoding format that the browser can correctly recognize. As long as the corresponding Content-Disposition is set according to this encoding, there should be no garbled Chinese file names
Js gets the differences between the control location (coordinate location) in different browsers. This article will give you a detailed introduction. If you are interested, refer
The Code is as follows:
// Obtain the coordinatesFunction getpos (e ){Var t = e. offsetTop;Var l = e. offsetLeft;Var height = e. offsetHeight;While (e = e. offsetParent ){T + = e. offsetTop;L + = e. offsetLeft;}}
Assume that ob
HR tag, I believe everyone is familiar with it. We generally use it to produce a horizontal line effect. We can define "color", "height", "width", "border" and other styles for it.
Here we will only discuss the compatibility between "color" and "border" for different browsers.
Color:
Firefox, IE7 + =: specified by background-color.
IE6-=: specified by color.
Scheme: Specify the color for HR and us
Eg1:
Result:
On the left is the result of running on Google and on IE.
The display: block attribute is used on eg1. in Google, the width and height values of the display: block and border attributes are added, that is: the outer frame is 10px multiplied by 2 (10 pixels for each left and right borders) + the inner frame is 150px, and the total size is 10px multiplied by 2 + 150px = 170px, that is, the width and height are both 170px;
In IE browser, the width and height values of the display: b
The input Tag file type removes the "No file selected" option for different browsers. inputfile
The previous style, this "unselected file" would like to remove it?
The running result of this Code removes the "unselected file"
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.
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 client = function () {var engine = {ie: 0, gecko: 0, webkit: 0, khtml: 0, opera: 0, ver: null }; var browser = {// viewer ie: 0, firefox: 0, safari: 0, konq: 0, opera
Click "Back" link, under Ie,firefix, History.go (-1) can play the role of back, but under Chrome does not work, with History.go (-2) to take effect.Later, it was found that parsing in Ie,firefix to perform the onclick event, i.e. executing the history.go (-1) page, skipped the href without executing the Or:Excerpted from http://blog.163.com/yiran_5467/blog/static/10821326201272212416782/History.go (-1) parsing in different
The probability that session_id of different browsers is the same is ???? Session_id duplicate session cookie
What I always know is that session_id is absolutely unique.
However, during session sharing for a second-level domain name, the user finds a problem: the user saves the session_id to the cookie during the first access, sets the cookie validity period to one day, and then the user exits. 30 minutes
The encoding format that the browser can correctly recognize. As long as the corresponding Content-Disposition is set according to this encoding, there should be no garbled Chinese file names.First, the Content-Disposition value can have the following encoding formats:1. urlencode:
Content-Disposition: attachment; filename = "struts2.0% E4 % B8 % AD % E6 % 96% E6 % 87% E7 % A8 % 8B. chm"
2. Base64 encoding:
Content-Disposition: attachment; filename = "=? UTF8? B? C3RydXRzMi4w5Lit5paH5pWZ56iLLmNo
JS's event binding method, ie only support attachevent, and FF and Chrome only support AddEventListener, so you have to do the two methods compatible, the principle is to first inferattachevent is only true (exists), assuming true is the attachevent () method. Otherwise, use AddEventListener (). also, to avoid inferring each time the event is bound. Ability to encapsulate a function myaddevent (OBJ,EV,FN) {}. the code is as follows: JS Binding Event Method: AddEventListener compatibility with At
["Webdriver.chrome.driver"] = IedriverBrowser = Webdriver. Chrome (Iedriver)Browser.get (' https://www.baidu.com/') Three, Chrome: 1, download ChromeDriver.exe 2 put in python installation directory c:\python27 ( python environment, already c:\python27 add to system environment variables path below ) or put it in the installation directory of Chrome path below; How to add an environment variable, or you can write it in code: From selenium import WebdriverImport OSChr
If you want to test the characteristics of a browser, you can obtain the following methodsJS Get browser informationBrowser code Name: Navigator.appcodenameBrowser name: Navigator.appnameBrowser version number: Navigator.appversionSupport for Java: navigator.javaenabled ()MIME type (array): Navigator.mimetypesSystem platform: Navigator.platformPlugin (array): Navigator.pluginsUser agent: Navigator.useragentCompare the whole1How to use JS to identify differen
consistent event by using this method because of the different ways that IE and other browsers can get events and the properties of events*/Eventutil.formatevent = function (oevent) {Isie and Iswin refer to a JS file to determine the browser and operating system typeif (Isie iswin) {Oevent.charcode = (Oevent.type = = "KeyPress")? oevent.keycode:0;IE only supports bubbling and does not support captureOeven
In IE, Firefox, Chrome browser display the effect is not the same, mainly the front of the space width is different.On the Internet to check the information, it is probably the meaning of:Different browsers will have different default fonts, general IE default fonts are Arial, and Firefox and chrome default font is times New Roman, Arial is a character, such as wide font, but Times New Roman is not a charac
browserdocument.write (″ has detected that your browser is: ″);document.write (″document.write (NAV);document.write (″document.write (″document.write (ver);document.write (″document.write (″ is entering the page, please wait ... ″);resolution IssuesResolving resolution issues without this feature in Dreamweaver, we can only manually add a piece of JavaScript code. First add the following code in the function Redirectpage () {var Url800x600=″index-ie.html″; Defines two pages, where index-ex.html
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.