自动创建--html控件

<!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>

posted on 2012-05-24 11:46 青蛙學堂 阅读(497) 评论(1)  编辑 收藏 引用 所属分类: Vs2008c#

评论

# re: 自动创建--html控件 2012-12-25 18:36 盖天00

学习了   回复  更多评论   

只有注册用户登录后才能发表评论。
<2005年11月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

导航

统计

常用链接

留言簿(8)

随笔分类

随笔档案

收藏夹

青蛙学堂

最新评论

阅读排行榜

评论排行榜