Hello there!
I made a function to hide/show menus and submenus and the funtion is working on IE6.0, but not in Netscape 4.78(where I need to use the function).Look my function:
function toggle(id)
{
var objTable = document.getElementById('tbl_menu');
// var objTable = document.getElementByName('tbl_menu');
var objRows = objTable.rows;
var row;
for(i=0;i<objRows.length;i++)
{
row = objRows;
if(row.name==id)
row.style.display=(row.style.display=='none')?'':'none';
}
}
The 'tbl_name' it is the name of the table where I am keeping the menus/submenus.The problem is that for Netscape 4.78 I can't get the name of the table.I tried to use getElementByName, but it is not working too.Can anybody help?
I made a function to hide/show menus and submenus and the funtion is working on IE6.0, but not in Netscape 4.78(where I need to use the function).Look my function:
function toggle(id)
{
var objTable = document.getElementById('tbl_menu');
// var objTable = document.getElementByName('tbl_menu');
var objRows = objTable.rows;
var row;
for(i=0;i<objRows.length;i++)
{
row = objRows;
if(row.name==id)
row.style.display=(row.style.display=='none')?'':'none';
}
}
The 'tbl_name' it is the name of the table where I am keeping the menus/submenus.The problem is that for Netscape 4.78 I can't get the name of the table.I tried to use getElementByName, but it is not working too.Can anybody help?