Netscape 6, Part I: Detection and Scripting Page 5
document.layersand other features of the Layer DOM
Avoiding Internet Explorer's Proprietary Features
Since both Internet Explorer and Netscape 6 each claim to be the best W3C-compliant browser, Netscape 6 is closer to Internet Explorer than to Netscape Navigator. The first and foremost noticeable difference is that Netscape 6 does not support the
document.all in the browser. We showed you earlier in this column how to detect for Netscape 6, using the
document.getElementById method. In fact, instead of using
document.all to access elements, get them directly by
document.getElementById(). If, for example, you would access an element in Internet Explorer that has an
document.all.foo, you would now reach it by
Netscape 6 does not support the Internet Explorer's proprietary
MARQUEE tag. The following piece of HTML creates an effect of animation. The statement
"Hello There..." scrolls to the right, every a fixed amount of time:
<MARQUEE BEHAVIOR="scroll" DIRECTION="right">Hello there...</MARQUEE>
There is no substitute for the
Netscape 6 does not support the
BGSOUNDtag. Instead use the HTML3.2
EMBED, or the HTML 4.0
OBJECTtags. Also, Netscape 6 does not support Internet Explorer's
In summary, when you start a new development now, avoid using:
A Final Word
IT Solutions Builder TOP IT RESOURCES TO MOVE YOUR BUSINESS FORWARD
Which topic are you interested in?
What is your company size?
What is your job title?
What is your job function?
Searching our resource database to find your matches...