First, I need to say I don't know much JavaScript. But I found a webpage that's not working in most Mac browsers, and I'm just wondering why. I think it's because of this code that starts the JavaScript...
I think I've determined that
neither of these "if" blocks are executing in the Mac browsers, and this is leaving these 4 variables undefined.
I created a simple
test page attempting to display the values of document.layers and document.all. Using Opera (the one Mac browser I've found that displays the page), I'm finding that document.layers is undefined, and document.all is [object HTMLCollection]. But using Safari, Camino, Firefox, and Shirra, I get nothing. In fact, Safari and Shirra seem to choke on the document.all.
So -- without knowing what "layers" and "all" mean -- is there a simple solution here? How should these variables be valued for Mac browsers?
[ June 06, 2007: Message edited by: marc weber ]