view the following simple script:
This should display 'hello world' with a border around it.
Mozilla does this neatly, but IE (6.0) gives an error:
'Unknown runtime error' on line 8
I tried putting a '<td></td>' pair into the HTML text, but that doesn't work, however the following script seems to work just fine:
It's not an option to place an additional table inside a '<td></td>' because i set widths somewhere else...
please help
Code:
<body>
<table border=1>
<tr id='row'>
</tr>
</table>
<script language="JavaScript">
<!--
document.getElementById('row').innerHTML = '<td>hello world</td>';
//-->
</script>
</body>
Mozilla does this neatly, but IE (6.0) gives an error:
'Unknown runtime error' on line 8
I tried putting a '<td></td>' pair into the HTML text, but that doesn't work, however the following script seems to work just fine:
Code:
<body>
<table border=1>
<tr><td id='data'></td>
</tr>
</table>
<script language="JavaScript">
<!--
document.getElementById('data').innerHTML = 'asdf';
//-->
</script>
</body>
It's not an option to place an additional table inside a '<td></td>' because i set widths somewhere else...
please help