Re: A problem with an apparently common JS menu...
- From: "Richard Cornford" <Richard@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 15 Nov 2005 23:56:18 -0000
VK wrote:
<snip>
> Netscape 4.x is gone, but as a reminder document.layers are still
> supported (or at least do not return undefined > false) on some
> browsers, for example Netscape (what a surprise!) or Safari.
This statement is false. Anyone surprised by that?
<snip>
> 1. Remove all "if (document.layers) {...}" branches completely
> 2. Replace all "else if (document.all)" with "if
> (document.getElementById)"
> 3. Go through the text and replace all "document.all("
> strings with "document.getElementById("
> 4. Save and test.
Advice best considered with an eye to the veracity of the statement
above.
Richard.
.
- References:
- A problem with an apparently common JS menu...
- From: Bryan
- Re: A problem with an apparently common JS menu...
- From: David Dorward
- Re: A problem with an apparently common JS menu...
- From: Bryan
- Re: A problem with an apparently common JS menu...
- From: VK
- A problem with an apparently common JS menu...
- Prev by Date: Re: passing a javascript variable into an html form element
- Next by Date: Re: What's the best IDE for Javascript? I'm using Eclipse...
- Previous by thread: Re: A problem with an apparently common JS menu...
- Next by thread: Re: A problem with an apparently common JS menu...
- Index(es):
Relevant Pages
|