I am a newbie to javascript, I am trying to convert the numbers from 1 to 256 to there character code using the following code while executing IE7. I am getting a error on the CDATA tag.
[CODE=javascript]<script type="text/javascript">
<![CDATA[
k=1;
document.write( '<table>');
for(i=1; i <16; i++) {
document.write( '<tr>');
for(j=0; j<16; j++) {
document.write( '<tr>' + k + '<br />' + &#k; + '</tr>');
}
document.write( '</tr>);
}
document.write( </table>);
]]>
</script>[/CODE]
[CODE=javascript]<script type="text/javascript">
<![CDATA[
k=1;
document.write( '<table>');
for(i=1; i <16; i++) {
document.write( '<tr>');
for(j=0; j<16; j++) {
document.write( '<tr>' + k + '<br />' + &#k; + '</tr>');
}
document.write( '</tr>);
}
document.write( </table>);
]]>
</script>[/CODE]
Comment