I have a javascript library to create cross-browser DHTML menus
dynamically. The library checks to see which browser you're using, then
based on that, displays the menus using the proper DOM. This works fine
in all browsers except Netscape 4. When I try to create a menu, even a
simple one, in Netscape 4, one of 2 things happens. Either Netscape
crashes after giving me a memory error or it freezes Netscape so that you
can't do anything. The majority of the actual code does nothing but make
calculations. However, when everything is ready, I have a few
document.write calls which write the menu and the hidden submenus to the
browser. I have added some alert to key areas of the script and found
that the problem occurs as it tries to write the first submenu. Is there
any way I can get around this problem? I realize the Netscape 4 isn't
anywhere near the best browser, but I was asked to make a library that was
cross-browser compatible, including Netscape 4.X. If it wasn't for that
browser, I'd be able to say I was done with the script.
Chris Cote