I created a window with
var mywindow = window.open( "some/local.html", "mywindow", "width=...,
"height=... ., ..." );
The window shows up. It contains a table.
<table>
<tr>
<td>begin</td>
</tr>
<tr id="here">
<td>end</td>
</tr>
</table>
Trying to modify the table (with the following code) fails using Mozilla
1.5 (IE6 works):
var here = mywindow.docume nt.getElementBy Id( "here );
var tr = mywindow.docume nt.createElemen t( "tr" );
var td = mywindow.docume nt.createElemen t( "td" );
var txt = mywindow.docume nt.createTextNo de( strType );
td.appendChild( txt );
tr.appendChild( td );
here.parentNode .insertBefore( tr, here );
alert( here.parentNode .innerHTML ); show that the new node exists.
But when executing this in Mozilla the new table row is not displayed.