I modify document.getElementById('').innerHTML
with Java Script in a page. It's working fine in Firefox, but not IE8. Please see below for more details:
HTML Code:
<table>
<tr id="abc">
<td id="ccc" style="color:red;">ccc</td>
</tr>
</table>
Java Script code:
document.getElementById('abc').innerHTML = '<td id="bbc" style="color:yellow;">abc</td>'
When I run the JS code in Firefox, it will change the display word from 'ccc' to 'abc', but it's just not working in IE8, does anyone know why? Is there any way I can make this work in IE8 as well?