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