宿城区是哪个省:表单转成js后能否正常显示

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/05 10:43:56
如以下这个js就不能正常显示,表单不和表格混排在一起就可以显示出来,有没有朋友遇到这种问题.(最终要求是把表单+表格转成JS后能正常调用显示出来.)
document.writeln('<form name="form1" method="post" action="">');
document.writeln(' <table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#003333">');
document.writeln(' <tr>');
document.writeln(' <td bgcolor="#FFFFFF"><label>');
document.writeln(' <input type="text" name="textfield">');
document.writeln(' </label></td>');
document.writeln(' <td bgcolor="#FFFFFF"> </td>');
document.writeln(' </tr>');
document.writeln(' <tr>');
document.writeln(' <td bgcolor="#FFFFFF"><select name="menu1" onChange="MM_jumpMenu('parent',this,0)">');
document.writeln(' <option>unnamed1</option>');
document.writeln(' </select></td>');
document.writeln(' <td bgcolor="#FFFFFF"> </td>');
document.writeln(' </tr>');
document.writeln(' <tr>');
document.writeln(' <td bgcolor="#FFFFFF"><label>');
document.writeln(' <input type="checkbox" name="checkbox" value="checkbox">');
document.writeln(' </label></td>');
document.writeln(' <td bgcolor="#FFFFFF"><label>');
document.writeln(' <input type="submit" name="Submit" value="提交">');
document.writeln(' </label></td>');
document.writeln(' </tr>');
document.writeln(' </table>');
document.writeln('</form>');