Hi,
I am using javascript code to insert and delete row in table of html page that is working in IE6. But when i use the same code for Firefox and opera browser it does not work.
It is actually a web page which i want to be cross browser compatible.
How to make this cross browser compatible?
The code is for deleting rows is as follows:
function Drow()
{
var s1;
s1=document.getElementById(‘a1’);
if (s1)
{
document.getElementById(‘tbl’).deleteRow(1);
}
}
‘a1’ is a cell of table and ‘tbl’ is a id of table.
Now i want to delete row of ‘tbl’
I am inserting row using following code:
x=document.getElementById(‘tbl’).insertRow(len);
This code is not working in opera and Firefox browser.
Please help me with this. ?
Thanks in advance
charlie