Alibabacloud.com offers a wide variety of articles about document formname elementname value, easily find your document formname elementname value information here online.
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.
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
Kevin's words: Because idiot IE is not compatible with W3C standards, it causes n multi-browser compatibility problems.
Article Is it easy to make web designer? You have to wipe Microsoft's ass all day, FT!
* The following article is
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.
1. Firefox cannot support innertext.Firefox supports innerhtml but does not support innertext. It supports textcontent to implement innertext, but by default, redundant spaces are retained. If textcontent is not required, you can use innerhtml
1. Firefox cannot support innertext.Firefox supports innerhtml but does not support innertext. It supports textcontent to implement innertext, but by default, redundant spaces are retained. If textcontent is not required, you can use innerhtml
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.
Compatibility problem and solution of CSS multi-Browser
I. Document. formname. Item ("itemname ")
Problem description: in IE, you can use document. formname. item ("itemname") or document. formname. elements ["elementname"]; In Firefox,
Document. Form. item:
Many statements such as document. formname. Item ("itemname") exist in the existing code and cannot be run in Firefox.Solution:
Use document. formname. elements ["elementname"].Collection object problems:
In the existing Code,
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.