Digital Web Magazine

The web professional's online magazine of choice.

Makiko Itoh

July 13, 2000 at 6:29 AM

If anyone has tried the"DOM sniffer" script that is linked to from the current tutorial, I had forgotten all about the fact that, in addition to Netscape 4, MSIE4 will also choke and return a JavaScript (er, JScript) error upon encountering "document.getElementsByTagname". So I've updated the sniffer script to deal with this. It's a very minimalist script that will sniff to see if the client browser uses the N4, IE4, or W3C-DOM document object model. Caveat emptor and enjoy!

Media Temple

via Ad Packs