This article summarizes the common compatibility problems of JavaScript in IE and Firefox browsers. Share to everyone for your reference, specific as follows:
Form
Document.formName.item ("ItemName")
IE: You can use Document.formName.item ("ItemName") or document.formname.elements["ElementName"]
Firefox: Only use document.formname.elements["ElementName"]
Workaround: unify the use of document
1. Download the latest version of the installation file
Download the latest Linux version of the installation file firefox-latest-x86_64.tar.bz2 (i downloaded the 64bit version) on Firefox's website and unzip it.
[Sun@localhost downloads]$ TAR-XJVF firefox-latest-x86_64.tar.bz2
2. Uninstall old version
The system defaults to install the old version of Firefox
General view of the individual:
Browsers are not the end of the update, Chrome has completed a big step, it is good, but there is still distance from Firefox. (Of course, if you use the number of people to determine the pros and cons of a software, then I have nothing to say) because the kernel reason Chrome cannot eliminate Firefox, and Firefox needs an opportu
1.doc ument. formname. Item ("itemname ")
Description: You can use document. formname. item ("itemname") or document. formname. elements ["elementname"]; In Firefox, only document. formname. elements ["elementname"].Solution: Use document. formname. elements ["elementname"].
2. Collection class Object Problems
Note: in IE, you can use () or [] to obtain collection class objects. In Firefox, you can only use
Most web designers and front-end engineers will use Firefox (Firefox), because Firefox's rich web development auxiliary plug-ins can provide us with many good features, such as Html,css,js error, find bugs, and so on. So here are some of the current popular Firefox web development plug-ins.
Development tools
1. Web Developer 1.1.8
Https://addons.mozilla.org/en
Tencent Technology News (China Tao) Beijing time August 31, according to foreign media reports, Firefox (Firefox) browser developers Mozilla Tuesday released its tablet version of Firefox's user interface and other design ideas.
Mozilla display Tablet PC version of Firefox browser user interface (Tencent technology map)
Ian Ballo, a member of the Mo
1. Document.formName.item ("ItemName") issuesDescription: Under IE, you can use Document.formName.item ("ItemName") or document.formname.elements["elementname"];Under Firefox, you can only use document.formname.elements["ElementName".Workaround: Use document.formname.elements["elementname" uniformly.2. Collection Class object issuesDescription: Under IE, you can use () or [] get the Collection class object; Under
Explanation of the Cross-Version Upgrade Method of Firefox under UbuntuLinux (also suitable for installing Firefox in Linux). Firefox is a cross-platform open-source browser that provides good support for non-Windows platforms, however, it is a headache to install Firefox in different versions in Linux.
My Ubuntu system comes with a Firefox browser version of 17.0.1. Today, the latest version on the official website has reached 23, so I want to upgrade it.
I am not very familiar with Linux. Thanks to the search engine, I finally upgraded it. Here I will record the operation process.
Upgrade Firefox
First download Firefox, I download from here: http://firefox.co
Development Tools
Web Developer 1.1.8
Https://addons.mozilla.org/en-US/firefox/addon/60It provides some practical tools for webpage (x) HTML, scripts, multimedia, CSS, caching, and images in the form of a toolbar. So that we can easily obtain more information about the web page, so that we can further understand the current web page.Note: powerful web analysis tools are required by developers.
Firebug 1.5.0
Https://addons.mozilla.org/en-US/
Rice flapping agent, the global leader of the agent brand, focus on the agency industry for nearly a decade, to provide open, private, exclusive agent, and free trialThe agent of Rice Flutter official website: https://proxy.mimvp.comThis article is an example of a private, exclusive, open proxy, specially developed for the M-topology agent,support for HTTP, HTTPS, no password, white list IP, password authorization three typesThis blog to from the rice Flutter blog: Python + Selenium +
#-*-Coding:utf-8-*-
Import OS
Import Selenium
From selenium import Webdriver
From Selenium.webdriver.common.keys import keys
"""
Practice launching various browsers: Firefox, Chrome, IE
Practice launching various browsers while loading plugins: Firefox, Chrome, IE
"""
Def startfirefox ():
"" "Launches the Firefox browser installed in the
Summary of incompatibility and unified methods between IE and Firefox in Javascript zhoz
, Technical Development
, Comment (3)
, Reference (0)
, Reading (2127)
, Via original site
Large| Medium| Small
Reference address:
Note:
This address is valid only before 23:59:59 today.
Test todayCodeBut an error is reported in ff.The incompatibility and unified methods of IE and Firefox in JavaScript are su
1. Use your local old version of Firefox to access http://www.firefox.com.cn and download the Linux version of Firefox.2. Enter the directory where the download file (firefox-latest-x86_64.tar.bz2) is stored.# cd/root/Download3. Unzip the firefox-latest-x86_64.tar.bz2 in this directory.After decompression will generate
In the speed of finding a lot of ways, and finally solved the
In fact the easiest way is to add You can also use program control
Copy Code code as follows:
Header ("Cache-control:no-cache,no-store,must-revalidate");
Header ("Pragma:no-cache");
Header ("expires:0");
?>
If in
Here's a specific analysis for you.:
two important differences between Firefox and IE browser caching
When you create a Web service, there are usua
Here are some of the things I've encountered in development:
1, delete a row in the table dynamically.
Table: Represents a Table object.
K: Indicates line number
Table.rows[k].removenode (TRUE); Firefox execution failed, ie executed successfully
IE and Firefox compatibility
Table.deleterow (k);
2, custom attributes for HTML tags.
Inputelement: Represents a FORM element.
PropertyName: Represents a p
The incompatibility and unified methods of IE and Firefox in JavaScript are summarized as follows:1. compatible with Firefox's outerhtml and FF, there is no outerhtml method. If (window. htmlelement ){
Htmlelement. Prototype. _ definesetter _ ("outerhtml", function (shtml ){
VaR r = This. ownerdocument. createRange ();
R. setstartbefore (this );
VaR df = R. createcontextualfragment (shtml );
This. parentnode. replaceChild (DF, this );
Return shtml;
})
The project should be compatible with IE and Firefox. Let me summarize the differences between Javascript in IE and Firefox. I copied some content on the Internet and made some changes: -Element search Problems1. Document. All [name](1) Existing Problem: Firefox does not support document. All [name](2) solution: Use getelementsbyname (name), getelementbyid (ID
1. Collection class Object Problems In the existing Code, many collection class objects are used (), which is acceptable to IE and cannot be used by Firefox.Solution: use [] as the subscript operation. For example, change document. Forms ("formname")JS Code
Document. Forms ["formname"];
// Another example is:
Document. getelementsbyname ("inputname") (1 );
// Change
Document. getelementsbyname ("inputname") [1];
Document. forms ["formname"]; // another example is document. getelementsbyn
have been trying to tidy up some Firefox browser more fun Plug-ins recommended to everyone, until today to figure out some ideas. So what's a fun extension for Firefox? In today's tutorial, we recommend some, if you still have a better recommendation, welcome message Oh!
Firefox browser
Firefox Browser fu
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.