G
Guest
Is there a Layers collection?
in the same way that i can access all the radio buttons
for(var i=0; i<form.radio.length; i++){
if(form.radio.checked){
var wch = form.radio.value
}
}
can I access all the layers on a page, with something like
for(var i=0; i<layers.length; i++){
if(layers.name.substr(0,2)=='c1'){
do something
}
}
obviously I know the above block of code will not work, but is their a
way of achieving this in javascript?????
in the same way that i can access all the radio buttons
for(var i=0; i<form.radio.length; i++){
if(form.radio.checked){
var wch = form.radio.value
}
}
can I access all the layers on a page, with something like
for(var i=0; i<layers.length; i++){
if(layers.name.substr(0,2)=='c1'){
do something
}
}
obviously I know the above block of code will not work, but is their a
way of achieving this in javascript?????