Helllo, I wonder if you can help me. I know lots of people on here are firefox fans so I thought I would try to get my IE only pages working in firefox. I have mucked about with this function for hours and can’t get it to work. Can anyone tell me the firefox equivalent please.
function viewdetail(ProdID,Mine,ProdNo)
{
if (document.all)
{
window.event.returnValue = false;
var table = document.getElementById(‘StatusTbl’);
var rowNo = event.srcElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.rowIndex;
for (i=2;i<table.rows.length;i++)
{
if (i == rowNo)
{ table.rows[i].cells[11].firstChild.rows[0].cells[3].innerHTML = ‘<span><img src=”../../NewImages/MatrixPointer12x11.gif”></span>’; }
else
{ table.rows[i].cells[11].firstChild.rows[0].cells[3].innerHTML = ‘ ’; }
}
}
}
I know event.srcElement is IE only and I have been mucking around saying things like e.target.parentElement but can’t make it work.
Thanks for any input.