Use the link as follows. After clicking in Chrome, the behavior is expected, but a new tag card will be opened under IE (according to reference, Firefox has the same problem).After looking for information, found to be resolved as follows.Block browser default event via onclick: or direct: The reason is that three browsers have different processing order for three properties.Chrome Order: onclick, href-and targetIE and
Async default is True, which is asynchronous, $. After Ajax executes, it will continue to follow the footsteps of Ajax until the server side returns data, triggering $. The success method in Ajax. Two threads are executed at this time.
My flash-screen situation is:
The code is as follows
Copy Code
$.ajax ({Type: "Post",URL: "index.php",Data: {},Async:false,Beforesend:function () {},Success:function (data) {//...},Complete:function () {}});
Here, my async i
Customattributedemo (obj)
{
if (Obj.clickcount = = ' 0 ')
{
Obj.clickcount = ' 1 ';
}
Else
{
Obj.disabled = true;
}
}
The above code will fail under Firefox because Firefox has a higher limit on the use of custom attributes and can only access it using the attributes[] collection, Firefox code:
Copy Code code as follows:
Using Python to write a reptile will certainly want to analyze the browser's various behavior, I use the tool is the Firefox browser plug-in Httpfox, the following describes the installation and use of this plug-in method.
First, open the Firefox browser, click on the menu in the upper right corner to open additional components
Second, click on the extension on the left, search Httpfox on the rightAfter t
Normally, we usually capture onkeydown or onkeyup events in input to do some commonly used processing, such as restricting the input of a certain type of characters, or restricting the length of input, and so on.
If you want to capture these onkeydown and onkeyup events in a Div, it is browser-compatible if you bind attributes directly to the nodes such as:
The code is as follows
Copy Code
Then in IE can work, and in
JavaScript gets Event
To start with a simple example, a simple button control is as follows:
Then register the event for it, and in this case, how to get an event in JavaScript, especially Firefox. Please see:
No accident, in the IE/FF, the above example will output input, that is, the trigger Click event node label name, ie, the event access here will not say, the focus of the situation under the FF.
Here the arguments.callee.call
The current version of the open source mobile OS Firefox OS is that the stable version that has been released to the manufacturer is 1.3, the release to be released in perfect functionality is 1.4 (released 25th this month), and the version of the research and development process has just been set to 1.5. The Firefox OS's main source branch on GitHub is already 1.5, and today it is possible to show what has
The Perfect browser-compatible
HR:
height:1px;
Border:none;
border-top:1px solid Black;
margin:0;
*margin:0 0-14px 0;
Float:none;
*float:left;
Display:block;
The 1.hr element is a block-level element that is a box that has border
2. Height:
sizeAnd
Style.height.IEAnd
FirefoxThe size is interpreted and calculated differently, so it's best not to
sizeUse
Height, but there will be a border
Box, so will
Border:none.
FirefoxIt's under.
sizeIt's solid.
Box, not just an ordinary block-lev
Recently, colleagues encountered a problem, the mall Web page when the jump, in Firefox click PageTag jump failed. Test in chrome,360, QQ browser jump normal.
Solution path:
1, in Firefox, Ctrl+shift+a, open the browser component interface
First component, tab optimization, disable. Restart the browser. Browse the Site page again, OK.
2, upgrade your Firefox
In the Android version of Firefox View blog home found in the middle of the font display is very large, began to think is the home page CSS for mobile browser support is not good.
It turned out to be a well-known bug in Firefox for Android:
For the. This is a known bug in Firefox's code to enlarge text to make it more readable on small screens. For details, seehttps://bugzilla.mozilla.org/show_bug.cgi?id=
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/
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
JavaScript compatibility has long been a major problem for Web developers. The differences between formal specifications, fact standards, and various implementations have made JavaScript compatibility a major problem for Web developers for a long time. Many developers suffer day and night due to the differences between formal specifications, fact standards, and various implementations. To this end, we mainly summarize the differences between IE and Firefox
JavaScript compatibility has long been a major problem for Web developers. Many developers suffer day and night due to the differences between formal specifications, fact standards, and various implementations. To this end, we mainly summarize the differences between IE and Firefox in the following aspects:
1. Differences between functions and methods;2. Style access and settings;3. DOM method and object reference;4. event handling;5. compatibility w
JavaScript compatibility has long been a major problem for Web developers. Many developers suffer day and night due to the differences between formal specifications, fact standards, and various implementations. To this end, we mainly summarize the differences between IE and Firefox in the following aspects:1. Differences between functions and methods;2. Style access and settings;3. DOM method and object reference;4. event handling;5. compatibility wit
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.