[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Find Document.body.onclick = function (evt),
In IE, this evt is not, but under the Firefox (opera seems to be) will pass this parameter by default. In IE, this parameter is null, want to be compatible, just write.
Continue downward,
EVT = EVT | | window.event;
In IE, EVT will point to: Window.event, under Firefox,
CentOS6.5 install the latest firefox version
In the current centOS6.5 installation CD, the firefox web browser version is too old, and it is an e-hpc version, that is, it cannot be automatically updated, this will cause the system to be installed, the default version of 17.0.10 is significantly different from the new version. For more information, see:
We can solve this problem by uninstalling the old
Find: Ctrl+f
Find again: F3
Enter Find Link: '
Enter find text:/
Find: Shift+f3
Web search: Ctrl+k or Ctrl+e
Firefox shortcut key Navigation class:
Back: ALT + LEFT ARROW key or Backspace
Forward: Shift+backspace or ALT + RIGHT ARROW key
Home: Alt+home
Open File: Ctrl+o
Reload: F5 or Ctrl+r
Reload (ignoring cache): Ctrl+f5 or Ctrl+shift+r
Stop: ESC
Firefox shortcut key Editing class:
Copy: Ct
1. document. form. item Problems(1) existing problems:Many statements such as document. formName. item ("itemName") exist in the existing code and cannot be run in Firefox.(2) solution:Use document. formName. elements ["elementName"](3) OthersSee 2
2. Collection class Object Problems(1) existing problems:In the existing Code, many collection class objects are used (), which is acceptable to IE and cannot be used by
To write JavaScript code that is compatible with mainstream browsers, you need to pay attention to their differences. The general Dom that IE and FF comprehensively consider is below!
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 ["elementnam
1. It is found that the id attribute of the input label in IE is the same as the name attribute by default. Firefox must explicitly write the id attribute name; otherwise, the id attribute cannot be used.
For example, The following code in IE can be executed, but not in Firefox:
The following code must be changed:
Reprinted as follows:
1. document. formName. item ("itemName ")
Note: in IE, you can use do
Frequently asked questions in JavaScript1. Collection Class object Problem
Many collection class objects in existing code use (), IE can accept, Firefox can not.
WORKAROUND: Use [] as the subscript operation instead. For example: Document.forms ("FormName") instead
JS code document.forms["FormName"]; Another example: Document.getelementsbyname ("InputName") (1); Change to Document.getelementsbyname ("InputName") [1];
document.forms["FormName"];
Anoth
1.firefox cannot support the innertext.Firefox supports innerHTML but does not support innertext, it supports textcontent to achieve innertext, but by default the extra space is retained. If you don't use textcontent, you can replace it with innerHTML if the string contains no HTML code.
2. Prohibit selection of Web page content:
In IE, js:obj.onselectstart=function () {return false;}
and Firefox uses Cs
Compatibility between IE and Firefox
From: http://blog.csdn.net/powerglover/archive/2009/01/15/3789631.aspx
1. Event ProblemsIn IE, we can directly use the event variable, but in Firefox, because the event is a local variable, in Firefox, We can bind the event to an element, for exampleTo be compatible with both IE and FirefoxCodeObtain the event.VaR theevent
JS compatibility Summary for IE and FirefoxAugust 11:39 Thursday by CottageLabel:Browser Method Properties IT notationI. Differences in functions and methods1 . GetYear () method"Analysis Notes" first look at the following code:var year = new Date (). GetYear ();document.write (year);The date you get in IE is "2010", and the date you see in Firefox is "110", mainly because the getYear returned in Firefox is
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 ProblemsNote: in IE, you can use () or [] to obtain collection class objects. In Firefox, you can only use
1.firefox cannot support the innertext.Firefox supports innerHTML but does not support innertext, it supports textcontent to achieve innertext, but by default the extra space is retained. If you don't use textcontent, you can replace it with innerHTML if the string contains no HTML code.
2. Prohibit selection of Web page content:In IE, js:obj.onselectstart=function () {return false;}and Firefox uses Css:-m
1 after the operation, the following error occurredSelenium.common.exceptions.WebDriverException:Message: ' geckodriver ' executable needs to BES in PATHInformation display geckodriver needs to be in the PATH environment variableWorkaround:Download Geckodriver, Address: https://github.com/mozilla/geckodriver/releasesLocate the download directory and add the Geckodriver.exe installation path to the path; typically put geckodriver.exe in the Python installation directory2 as the above method is mo
/********************************************************************* * Author:samson * date:11/15/2014 * Test PL Atform: * 3.13.0-24-generic * GNU bash, 4.3.11 (1)-release * *********************************** ********************************/When you encounter no Flash plug-in when browsing to the official website to download one:http://get.adobe.com/cn/flashplayer/The download is: install_flash_player_11_linux.i386.tar.gzThen unzip the package, and then follow the usual first look at the Rea
How to modify the theme background of Firefox browser under WIN8 system
The specific methods are as follows:
1, open the Firefox browser add-on components;
2, in the additional component page can see the selected theme of the column, click on the column name after the view of all the buttons;
3, click to enter the theme Selection page, from the picture to see, a lot of themes, th
Now, in a well-known web browser, Firefox should be the first to join the reading mode, but to use this feature also need to activate it. First enter the command "About:config" in the Address bar, and press the ENTER key to pop up a set prompt window. Click on the "I'll be Careful,i promise" button and go into the Firefox browser settings screen. Enter the parameter name "reader.parse-on-load.enabled" in th
Look at the title should know what the software is to be introduced today. Yes, boring recently the computer to recharge, before the most nerve-racking is the driver installation, now the biggest headache is the browser data and expansion suite of the restoration, although the Firefox or Chrome has a cloud backup function, but still not very reassuring, How do you keep the data on your hard drive? Let Mozbackup help you!
Opera's content interception function is quite good, you can remove a lot of flash animation and picture ads, I have always felt that opera's advertising interception and pride of the blacklist is the list of features are first-class, is the browser's best advertising interception master.
Today, I saw a Firefox advertising interception skills, I installed the next Firefox, and practice the next, feel this
Recently in a script to try an automatic punch, found a few questions, hereby recorded.Environment:Ubuntu 12.04.4 LTSSelenium 2.43.0Firefox 32.0.31 Originally the machine Selenium,firefox are installed, but Firefox updates from time to time, so selenium may not support the current version of Firefox.Update Selenium command:sudo pip install-u Selenium2 python script used:1 #!/usr/bin/env python2 3 ImportSYS4
Browsers have their own caching mechanism, the general CSS and pictures will be cached locally, so that our modified CSS will not see the effect, each time to clear the cache, and then refresh to see the effect, so that the operation is too troublesome. Under IE we can directlyTo change the settings of the Internet Options/general/browsing history/To Temporary Internet Files option, the newer version of the Web page will be checkedThis is changed to check each time you visit this page. So we don
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.