I wrote a following function just for testing purposes:
<html>
<head>
<script>
function show(obj) {
alert(obj.previousSibling.rowIndex)
alert(obj.rowIndex)
alert(obj.nextSibling.rowIndex)
}
</script>
</head>
<body>
<table>
<tr >
<td></td><td></td></tr>
<tr onclick="show(this)">
<td>1</td><td>something</td></tr>
<tr onclick="show(this)">
<td></td><td></td></tr>
<tr onclick="show(this)">
<td>2</td><td>something</td></tr>
<tr onclick="show(this)">
<td></td><td></td></tr>
<tr onclick="show(this)">
<td>3</td><td>something</td></tr>
<tr>
<td></td><td></td></tr>
</table>
</form>
</body>
</html>
Under MSIE it seems to work correctly, while when run under Mozilla 1.6 it
returns "undefined" for previousSibling and nextSibling, is there any way
of accessing neighbour rows from a "this" row under Mozilla?