U
user
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.document.getElementById( "here );
var tr = mywindow.document.createElement( "tr" );
var td = mywindow.document.createElement( "td" );
var txt = mywindow.document.createTextNode( 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.
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.document.getElementById( "here );
var tr = mywindow.document.createElement( "tr" );
var td = mywindow.document.createElement( "td" );
var txt = mywindow.document.createTextNode( 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.