dopoto
08-22-2004, 04:25 AM
Hello,
I use the following code, that works fine in IE, to locate a DIV based on its name and change its properties:
var divcol = document.getElementsByTagName("DIV");
for (var i=0;i<divcol.length;i++)
{
if (divcol[i].name.indexOf("_title")>-1)
{
// DO SOMETHING HERE
}
}
But it seems that Netscape can't handle the .name property. Do you have any suggestions?
Greetings , Doru
I use the following code, that works fine in IE, to locate a DIV based on its name and change its properties:
var divcol = document.getElementsByTagName("DIV");
for (var i=0;i<divcol.length;i++)
{
if (divcol[i].name.indexOf("_title")>-1)
{
// DO SOMETHING HERE
}
}
But it seems that Netscape can't handle the .name property. Do you have any suggestions?
Greetings , Doru