I think you want something more like this:
Code:<script language="JavaScript"> var test = 2; if (test==1) { document.writeln('<table>'); document.writeln('<tr>'); document.writeln(' <td><input type=text name=t1 value=Component size=8></td>'); document.writeln('</tr>'); document.writeln('</table>'); } </script>




Reply With Quote