MozillaZine

Netscape 6 Released

Tuesday November 14th, 2000

Netscape 6 has been released. You can download the installer here.


#185 One cheats way of getting IE DHTML on Moz

by danielhill <danielhill@hotmail.com>

Saturday November 18th, 2000 5:49 AM

You are replying to this message

Add the following bit of code near the start of your code: if (document.getElementsByTagName("*")) { document.all = document.getElementsByTagName("*") }

Then you can use document.all.foobar in Netscape as well as IE.

IE5 also supports a lot of the W3C DOM syntax. So if you wanted to do things The Right Way, instead of using document.all.foobar, you can use document.getElementById("foobar") both in IE5 and NS6. Not IE4, though.