This article describes how to display and hide the drop-down menu in JavaScript. For more information, see this article. The knowledge we need to use to implement JavaScript is:
1) JS event: the onmouseover mouse goes through the event and the onmouseout mouse leaves event.
2) Basic JS Syntax: Use the function keyword to define a function.
3) DOM programming: getElementsByTagName () method.
The next step is
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 use. If you are worried that it will occupy too much system resources, you c
The FireFox browser uses Javascript to upload large files. This program uses the Firefox browser of 3.x to read local files, implement the function of uploading large files through xmlHttPRequest, and dynamically display the upload progress during the upload process. This program uses the Firefox browser of 3.x to read
properties of undefined. In this case, the application throws "Uncaught TypeError cannot set property of undefined".For example, in a Chrome browser, this error occurs if the test object does not exist:So you need to define the variables before accessing them.Referenceerror:event is not DefinedThis error is raised when attempting to access variables that are not defined or that are outside the current scope.If you encounter this error while using the event-handling system, be sure to use the in
Javascript
1. Object Problem
1.1 Form ObjectExisting issues:Existing code this gets the form object through the Document.forms ("FormName"), so that the use in IE can be accepted, MF cannot.Workaround:Instead, use as the subscript operation. Change to Document.forms["FormName"]NoteThe above used as the formname in the subscript operation is ID and name
1.2 HTML ObjectExisting issues:In IE, the ID of an HTML object can be used directly as the subordina
The recent use of Firefox for Web page debugging, found that some JavaScript XSLT processing XML statements only support IE browser. Some of the articles in the web that introduce JavaScript XSLT to deal with XML are basically based on Ajax.Helpless, I wrote a JavaScript XSLT processing XML to
JavaScript is compatible with xml processing functions (xml synchronous asynchronous loading, xsl conversion, selectSingleNode, and selectNodes) in IE, FireFox, Chrome, and other browsers. It is often a headache for browser compatibility when writing web pages that process xml. So I encapsulate common xml operations as functions. After a period of improvement, it is very stable and comfortable to use.
Funct
The program code idea is roughly as follows. I want to dynamically change the innerHTML content of the tr tag, but IE reports an unknown runtime error.
The Code is as follows:
ScriptDocument. getElementById ("trone"). innerHTML = "haha ";Script
In IE, "unknown runtime error" may sometimes occur, but not in firefox.
This is mainly because when IE writes innerHTML, it will check whether the element meets the requirements of the html object c
Javascript is easier to learn. However, you need to pay attention to this language. This article will point out 10 possible errors in JavaScript programming.Error 1-use global variables
If you have just started JavaScript programming, you may feel that global variables are useful. In fact, at the beginning of
javascript| Control | Calendar
Web Calendar control A lot of online, the function is also very powerful, but most of them do not support Firefox, their leisure wrote a, has the following characteristics:
Characteristics:
First, support Ie6,firefox
Second, support Chinese and English calendars, free to expand other languages
Third, when you encounter the Select D
following properties: The constructor of the constructor-instance prototype. Message-Error information name-the error name is above all standard attributes, (but) sometimes each environment has its own specific attributes, in the example Node,firefox,chorme,edge,ie 10+,opera and Safari 6+, There is also a stack property that contains the error stack record. The error stack record contains all the stack frames from its own constructor (the bottom of t
and later), support for bubbling events has risen to the Window object.This results in a different response to the above incident.Besides, there's an interesting place I don't know if you noticed. is the order in which the event targets are responded. (Bubble Event Response order ...) It seems like a bit of nonsense. Firefox also supports two event models, namely, capture events and bubbling events. Here the apparent event handler function is in the
Today, I checked my website background logon Detection Using JQuery + AJAX + PHP. The compatibility in other browsers is good. As a result, the JS built-in function setTimeout in FireFox is not executed, this article provides detailed solutions. Today, I checked my website background logon Detection Using JQuery + AJAX + PHP. After I found that my login was successful, I executed the page Jump function section Jav
A Use the alert () and document.write () methods to monitor variable values
If you want to break the code and monitor the value of the variable, use the alert () method;
If you need to see a lot of values, use the document.write () method to avoid repeatedly clicking the OK button;
B using the Window.onerror event
When an exception occurs on the page, the OnError event is triggered on the Window object. It can tell developers a certain amount of error information.
Example:
Copy Code code
Compilation of Javascript IE and Firefox compatibility [zt]
Internet Explorer is replaced by IE and Mozzila Firefox is replaced by MF.
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 MF.(2) solution:Use document. formName. elements ["elementName"](
IE and Firefox under JavaScript getyear years different browser JavaScript getyear year function compatibility issues
Let me give you an example.
Some websites on Firefox will see this hint.
It's 106 years, August 8.
and using IE browser will show the normal August 8, 20
1. New/older versions of Chrome and Firefox are supported, so settings are not supported in IE to blink the hint text at minimized windows.2. Set the prompt window to show 5 seconds to close.3. You can set the icon and click on the prompt window to jump to the page (see Input parameters). varTimer =NULL, title= $ (' title '). text (); $(' body '). On (' click ',function() {clearinterval (timer);
Http://www.chinaunix.net Author: honestqiao published on: 09:53:27[Comment] [View Original] [HTML/JavaScript discussion board] [close]
[Learning] compilation of JavaScript IE and Firefox compatibilityInternet Explorer is replaced by IE and mozzila Firefox is replaced by MF.1. Document. Form. Item Problems(1) existing p
Javascript
Following IE instead of Internet Explorer, MF replaces Mozzila Firefox
1. Document.form.item question(1) Existing problems:There are many Document.formName.item ("itemname") statements in existing code that cannot be run under MF(2) Solution:Switch to document.formname.elements["ElementName"](3) OtherSee also 2
2. Collection Class object problem(1) Existing problems:Many collection class objects
Compilation of Javascript IE and Firefox compatibility
Source: soft test information collection
Time: 9:05:59
Type: Basic
Internet Explorer is replaced by IE and Mozzila Firefox is replaced by MF.1.
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.