November 24, 2000 - Document Object in Netscape 6 | WebReference

November 24, 2000 - Document Object in Netscape 6

Yehuda Shiran November 24, 2000
Document Object in Netscape 6
Tips: November 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

As advertised by the W3C (World Wide Web Consortium), Mozilla-based browsers are not going to support the Internet Explorer's proprietary document.all object, nor will they support the Netscape Navigator's proprietary document.layers object. Indeed, Netscape 6 delivers on this promise. It does not understand Navigator's document.layers, nor does it comprehend Internet Explorer's document.all. The following links compute document.all and document.layers. Try to run them on your system. You should find that document.all is supported only for Internet Explorer, and document.layers is supported only by Netscape Navigator. In this case, You should see an alert box with the [object] message. In all other cases, including Netscape 6, these attributes are not understood, and you should redevelop your page using other capabilities.