hello,
how can i hide html on the fly?
i'm trying to do that as following:
<script language="JavaScript">
var hide_html = true
if(hide_html) document.write('<!--')
</script>
<table>
<tr><td>box a</td></tr>
</table>
<script language="JavaScript">if(hide_html) document.write('-->')</script>
but it doesn't work.
the problem is escaping comments character,
thanks in advance
how can i hide html on the fly?
i'm trying to do that as following:
<script language="JavaScript">
var hide_html = true
if(hide_html) document.write('<!--')
</script>
<table>
<tr><td>box a</td></tr>
</table>
<script language="JavaScript">if(hide_html) document.write('-->')</script>
but it doesn't work.
the problem is escaping comments character,
thanks in advance
Comment