打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
动态创建表单

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
   
  <script>
function   showForm()
{
    var   s=   " "   +
' <form   action= "http://www.cnn.com "   method= "post "> '   +   '\n '+
' <input   type= "text "   name= "name "   value= "1 "/> <br> '   +   '\n '   +
' <input   type= "checkbox "   name= "chk "   /> Check   boc '   +   '\n '   +
' <input   type= "submit " value="button"  /> '+ '\n '+
'  <input id="Button1" type="button" value="button" /> '+ '\n '+
'   <input id="Checkbox1" type="checkbox" />chose '+ '\n '+

' </form> ';
  hiddenForm.innerHTML   =s;
}
</script> 
   
</head>
<body>
  
  
      在下面:
    <div   id= "hiddenForm"> </div>
   
<input   type=button   value= "Show   Form "   onclick= "showForm(); ">

   
</body>
</html>

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
javascript控制复选框只能选择两项后,别的都选不上。
免费设置个人形象
javascript实现全选,反选及全不选
prototype.js radio checkbox用法
css样式之区分input是按钮还是文本框的方法
使用javascript进行定位
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服