In this article, the authors introduce 7 different JavaScript syntax in IE and Firefox.
While the days of different browsers that need to be dealt with with long, tedious, different branch codes are over, it is occasionally necessary to make some simple distinctions and target detection to ensure that a piece of code works correctly on the user's machine. In this article, the authors introduce 7 different
Javascript debug toolkit is an open-source and free Eclipse plug-in. Its official homepage is http://code.google.com/p/jsdt. a browser reference table supported by the tool is provided.
Tools/browsers
IE
Firefox
Safari
Chrome
Opera
Others
Vs.net
Supported
Microsoft Script Debugger
It is said that for Web developers, Firebug is one of the best plug-ins in Firefox. I recently learned how to use Firebug. I found a tutorial for beginners on the Internet, which is useful and translated.
Author: Estelle Weyl
Http://www.evotech.net/blog/2007/06/introduction-to-firebug/
Translator: Ruan Yifeng
This article is an overview of Firebug and does not explain all its features in detail. However, the content in this article should be sufficien
Compatibility between IE and Firefox in Javascript
1.doc ument. formname. Item ("itemname ")Note:In IE, you can use document. formname. Item ("itemname") or document. formname. elements ["elementname"];In Firefox, only document. formname. elements ["elementname"] can be used.Solution:Use document. formname. elements ["elementname"].Text1:Document. formna
Document directory
1. CSS "float" Value
2. Calculation style of Elements
3. Access the "class" of the element"
4. Access "for" in the
5. Get the cursor position
6. Obtain the visible area and window size.
7. Alpha transparency
I found a good article today. I will repost it for your convenience.Http://www.impressivewebs.com/7-javascript-differences-between-firefox-ie/Even though it's time to use
Although it's time to use long string, dull, and different branch code to handle different browsers
Even though it's time to use long string, dull, and different branch code to handle different browsers, occasionally, it is necessary to make some simple differentiation and target detection to ensure that a piece of code can run properly on the user's machine. The following describes some different JavaScript syntaxes in IE and Firefox.CSS "float" Valu
Differences between Firefox and IE on JavaScript and CSS
Keywords: javascript; CSS; Firefox; ie; Difference1. Document. formname. Item ("itemname ")Note: in IE, you can use document. formname. Item ("itemname") or document. formname. elements ["elementname"];In Firefox
1. CSS "Float" valueThe most basic syntax for accessing a given CSS value is: Object.style.property, using the hump to replace a value with a connector, for example, to access a
document.getElementById ("header") . Style.backgroundcolor = "#ccc" ;
But since the word "float" is a JavaScript reserved word, we can't access it with Object.style.float, where we can do this in two browsers:
Write this in IE:
document.getEle
Javascript has many different performances in IE and FireFox. The following lists some common differences. In-depth understanding of these differences can help Web developers and designers avoid common mistakes and improve development efficiency.
BKJIA recommended reading: Javascript solves Common Browser compatibility problems
1.doc ument. formName. item ("itemN
I had a project several months ago and had a headache in displaying and executing JavaScript and CSS in different browsers. Today I searched the internet and summarized the information, this document is from the Internet and cannot be used to specify the source.
I. There are two methods to write CSS for different browsers:
1. Use the underscore (*) and underscore (_) to distinguish them, as shown below:
Background: orange; * Background: green; _
, and to enter the text on the page, Firefox will take you to that place.Live bookmarksRSS feeds allow you to subscribe to the latest headlines and website updates.Easy to download filesThe files you download are automatically placed on the desktop and are easy to find. Ask the east to reduce the situation, so that the download smoother and faster.Considerate userSimple and intuitive Firefox has the full fu
Do you know how to test JavaScript compatibility? Here we recommend a browser, which is the Simplified Chinese version of Firefox. Mozilla Firefox is a free and open source browser for Windows, linux and MacOSX platforms, which are small and fast, also have some other advanced features, main features include: Label-Based browsing, making surfing faster; pop-up wi
Original: Window.close in JavaScript does not work properly on Firefox and ChromeJS in the Closed window Method Window.close () on IE can be normal action, and in Firefox and Chrome can not action.(At that time, on the Chrome35.0 is still possible, Chrome36.0 can not move the JS in the method of closing the window window.close () on IE can be normal action, and i
Since Google launched Chrome with V8 JavaScript engineThe appetite for engine execution efficiency has been improved again. Many browser developers have racked their brains to improve their JavaScript performance. Opera's latest 10.50 carakan
The engine is said to have exceeded V8, and Firefox developers are not willing to show weakness.
Black; "src =" http://www
found.Of course, if it is an exception in TPL, because TPL complies with the XML specification and requires writes as amp;Firefox cannot recognize amp; in JS;
14. nodename and tagname Problems(1) existing problems:In Firefox, all nodes have a nodename value, but textnode does not have a tagname value. In IE, nodename usage seems to beThere is a problem (the test is not performed, but my IE has been kill
Sometimes we do not want users who browse our website to view the source code of our website or right-click to copy the content of our article. So what we can do at this time is to shield the user's right-click action. So that the user does not respond when right-clicking on our webpage. For specific operations, see the following code (this code is compatible with both IE and firefox ):
// Hide right-click and right-click document. oncontextmenu = fu
1. Differences in CSS "float" attributes of JavaScriptThe basic syntax for getting a specific CSS attribute of a given object is the object. style attribute, and the attributes with hyphens must be replaced by the camel naming method. For example, to obtain the background-color attribute of a div whose ID is "header", we need to use the following syntax:
Document. getElementById ("header"). style. borderBottom = "1px solid # ccc ";
However, because "float" is a reserved word in
Seven JavaScript differences between Firefox and IE-although jerrylsxu's history of using lengthy and annoying code blocks to mark specific browsers has ended, however, it is necessary to occasionally use some simple code blocks and object detection to ensure that some code works normally on the user's machine.
In this article, I will outline seven different aspects of Internet Explorer and
Although JavaScript history uses a long, annoying block of code to mark the end of a particular browser, it is still necessary to occasionally use simple blocks of code and object detection to ensure that some code is working properly on the user's machine.
In this article, I'll outline 7 aspects of Internet Explorer and Firefox that are different in JavaScript
JS in the Closed window Method Window.close () on IE can be normal action, and in Firefox and Chrome can not action.(At that time, on the Chrome35.0 is still possible, Chrome36.0 can not move the JS in the method of closing the window window.close () on IE can be normal action, and in Firefox and Chrome on the action.(At that time, on the Chrome35.0 is still possible, Chrome36.0 can not act on it)The workar
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.