Read about how to use javascript debugger in firefox, The latest news, videos, and discussion topics about how to use javascript debugger in firefox from alibabacloud.com
. const Problems
[Analysis description] the const keyword cannot be used in IE. For example, const constVar = 32; in IE, This Is A syntax error.
[Solution] use var instead of const.
Ii. Style access and settings1. "float" attribute of CSS
[Analysis description] The most basic syntax for Javascript to access a given CSS value is: object. style. property, but some CSS attributes have the same names as the R
1. CSS Tutorial "float" valueThe most basic syntax for accessing a given CSS tutorial 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 tutorial reserved word, so we can't use object.style.float to access, here, we can do this in two kinds
operation: The value of InnerText is actually a series of processing of innerHTML property values, and then return, the following steps1. Parsing the HTML tags;2. The CSS style with limited parsing and rendering;3. Convert the ASCII entity to the corresponding character;4. Remove the format information (such as \ t \ r and \ n, etc.) and combine multiple contiguous spaces into one.Browser effects are not uniformTextcontent:Browser support: Ie9~11, Fireforx, ChromeAssignment action: First conver
Web developers. This is an easy-to-use plug-in. If you have never touched it before, you may have a desire to try it after reading this article. When I wrote this article, it was a coincidence that Firebug released the official 1.0 version.
ApplicationAlthough the Firebug plug-in is powerful, it has been seamlessly integrated with the Firefox browser for simple and intuitive
What is FirebugHaving been working on web development for several years, it is increasingly felt that there is a higher demand for web development now. To write beautiful HTML code, to write elegant CSS stylesheet to show each page module, to debug JavaScript to add some more lively elements to the page, to use Ajax to bring the user a better experience. A good web developer needs to be more level-able to d
IE by the analysis note. such as const CONSTVAR = 32; This is a syntax error in IE.
"Workaround" does not use const and is substituted with var.
second, style access and settings1. css "Float" property
The most basic syntax for parsing JavaScript to access a given CSS value is: Object.style.property, but some CSS properties are named the same as reserved words in Jav
Get text method in IE innertext not supported in Firefox
Firefox changed to Textcontent method/attribute
And the whitespace in the middle of the Firefox Chinese text is replaced by a ruthless replacement.
It's extremely inconvenient to use.
Now it's okay to redefine the InnerText method with
() function"Analysis Notes" in IE, you can use eval ("Idname") or getElementById ("Idname") to get an HTML object with an ID of Idname; Firefox can only use getElementById ("Idname") To get an HTML object with ID idname."Compatible processing" unifies the getElementById ("Idname") to obtain an HTML object with an ID of idname.3. Const DECLARATIONThe "Analysis No
This article mainly introduces the differences in JavaScript syntax between IE and Firefox, and seven different aspects in JavaScript syntax, if you are interested, you can refer to the conclusion that, although JavaScript history uses lengthy and annoying code blocks to mark specific browsers, the period has ended, ho
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 r
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 ref
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:
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. In this article, the author introduces seven different JavaScript syntaxes in IE and Firefox.
1. CSS "f
This article provides a detailed analysis of the solutions to the JavaScript compatibility problem between IE and FireFox. If you need a friend, refer to it, I hope to help you in the following situations during development:
1. dynamically delete a row in the table.
Table: indicates a table object.
K: indicates the row number.
Table. rows [k]. removeNode (true); // fir
If you want to learn JavaScript, you must know or understand it. 1. You can find that the id attribute of the input tag under IE is the same as the name attribute by default, firefox must specify the name of the id attribute; otherwise, the id attribute cannot be used.
For example:
The following code in IE can be executed, but not in Firefox:
Script
Alert (docu
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
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:
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. parentnod
Javascript: javascript reads and writes XML in IE and FireFox to achieve AD rotation. Javascript tutorial
I recently updated my website homepage advertisement, ASP. NET ad controls can easily achieve this, but the homepage is a static page. Lenovo's ad Control Principle decides to
In this article, the authors introduce 7 different JavaScript syntax in IE and Firefox.
1. CSS "Float" value
The most basic syntax for accessing a given CSS value is:
Object.style.property
, use the hump to replace a value with a connector, for example, to access a Value, we use the following syntax:
document.getEleme
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.