Several authors say that a good object test for Netscape 6 is to look for these two conditions:
1. Support for GetElementById
2. Lack of support for document.all
However, Opera also passes this Netscape 6 test -- whoops!
Since Opera can be set to identify itself as various agents, reading the string is not dependable. So, I'd really prefer an object test, if one exists. Otherwise, it seems like I would need to write one code for both NN6 and Opera 5. Does anyone know if this means trouble in any way?
Here's some of my recent reading on this topic--
JS support in Opera 5 [opera.com]
Mozilla's Ultimate Browser Sniffer [mozilla.org]