Click to See Complete Forum and Search --> : IE/Netscape Compatibilty


r_Ganesh
August 9th, 2002, 09:28 AM
Hi friends,

Some HTML code and Javascript code that works in IE doesnot work in Netscape. Where do i find details regarding this? Which HTML tags and Javascript code will work both in IE and Netscape. Iam using IE 5.0 and Netscape 4.7. Please suggest me some books or website to find this information.

Bye.
Ganesh.

Waldo2k2
August 9th, 2002, 11:30 AM
well this was the completely wrong board for you to post on...but being a fellow j-scripter i'll help you anyway.

First off, one of the biggest things is, the Document Object Model in IE 5 is way different from N6. The world wide web consortium came up with a unified model, in netscape 6 99% of the new model is supported, along with netscapes older syntax as well. IE5 only supports something like 30% of the DOM.

Key differences:
Netscape uses document.layers
IE uses document.all
Netscapes heirarchy is flat
IE's heirarchy "bubbles up" (document.all.forms[0].GetElementById(sendButton) )
And many more

post some code and i can make it cross browser friendly.

I highly recommend the JavaScript Bible Gold...teaches you everything, and has a complete DOM reference.
Also for some more theoretical approaches to cross browser support search for "cross browser dhtml".


Note: all html tags work in both IE and Netscape...all versions
I believe that IE 6 supports more of the DOM, maybe 75% or more