Addressing Table Cell Contents in DOM using .all[nn] or ???

E

Earl T

I just started doing relative DOM addressing to address contents of my
objects. Most of it is very simple but I was wondering of the .all[]
syntax is the most compatible and best was of addressing the objects
withing a table cell?

For example, I have a table with

<TR onmouseover="TabOver(this)">
<TD>
<img src="spacer5.gif">
</TD>
</TR>

And the function looks like

function TabOver(TabRow)
{
TabRow.cells[0].all[0].src='/images/foo.gif'
}

Thanks

Earl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top