Pages

Monday, June 27, 2011

Be careful of Internet Explorer's liberal nature (IE 6)

Internet Explorer can be very forgiving when it comes to the syntax of client-side code. However, you should be careful because what IE accepts, other browsers may reject. For example, lets say you use the JavaScript Open method to open a new window.

In IE, the new window can reference the first window with the code: opener.someformname. However, this exact same code fails in Netscape because its expecting opener.document.someformname. Also, IE doesn't always require you to supply end tags () or list them in the order that that you opened them. These omissions could also be fatal on other browser types.

Our advice is to adhere to the strictest coding rules and of course, test your code on other browsers before you release it.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.