Click to See Complete Forum and Search --> : going over table cells


pelegk1
01-04-2004, 05:48 AM
is it possible to go over a tables cells
and readiing there innerText
but withought giving any of the table cells and id?
thanks in advance
peleg

pelegk1
01-04-2004, 07:59 AM
?

simpson97
01-05-2004, 03:27 AM
Dont know if this is what you had in mind but play with it.
I tossed it together quick & dirty.


<html>
<head>
<script>
function show(obj) {
alert(obj.lastChild.nodeValue)
}
</script>
</head>
<body>
<center>
<table>
<tr>
<td onmouseover=show(this)>
Row 0 contents
</td>
<tr>
<td onmouseover=show(this)>
Row 1 contents
</td>
</tr>
</center>
</body>


Bob