PDA

View Full Version : Javascript and HTML in Firefox


Yahook
09-27-2006, 10:52 PM
I decided to make this thread to help programmers in making good sites for IE and Firefox. You know Firefox is very strict to HTML mistakes. Sometimes the code works in IE but doesn't work in Firefox.

1) The code onClick="Command();" works find in IE but not works in. Solution: use onclick instead of onClick.

Please add something useful in this thread if you know :wink:

Warren_Buffett
04-17-2008, 06:42 PM
Well all works in IE, for me the same problem. I do a site, in IE it is displayed as it is necessary, and in Opera displays a little bit differently :(

poornpig
09-14-2008, 11:20 AM
I wanted to leave my 2¢ Its not other Browsers displaying it differently, its IE that displays it not like the standards say. If you use valid HTML in your web pages you can see with what exactly IE does have a problem. In HTML 4.0 there is no event attribute onClick! http://www.w3schools.com/tags/ref_eventattributes.asp Use the w3 markup validation service to be sure your markup is valid: http://validator.w3.org/