Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Named Layers in IE


  • From: javascript@xxxxxxxxxx (Jay Lepore)
  • Subject: [Javascript] Named Layers in IE
  • Date: Mon, 27 Aug 2001 05:32:05 -0400

Hello,

If I want to display a list of just the named layers in Netscape, I
could use this code:

var layersln;
var layernm="";
layerslen=window.document.layers.length;
for(index=0;index<layerslen;index++) {
var layernm=layernm+"layer "+index+" =
"+window.document.layers[index].name+"\n";
}
alert(layernm);

In IE however, I cannot figure out how to accomplish the same thing
without getting ALL layers instead of just named layers.

Any ideas?