By position, I mean how many columns are to the left of the cell and how many rows are above it. What I need are two functions:
function FindColPos(element)
{
return colPos;
}
function FindRowPos(element)
{
return rowPos;
}
functions MUST be written this way, I cannot add other things to my document, such as ID, since I only have access to the document title, where I would insert javascript functions. (All this is part of another project in C #). The element passed to the function will be a cell in line (a <TD>), but it would be better if I could pass any element inside <TD>, and the function can recognize the parent <TD>. I'm not advanced enough in javascript to figure it out myself. I don’t even know if this is possible. Hope you can help.