BOM:

</head>
<script type="text/javascript">
<!--
function fun(){
document.all[11].innerHTML = "你好" ;
document.forms[1].username.value = "张无忌" ;
document.images[2].src = "images/1.jpg" ;
}
//-->
</script>
<body onload = "fun()">
<P></p>
<form method="post" action="">
姓名1:<input type="text" name="">
</form>
<form method="post" action="">
姓名2:<input type="text" name="username">
</form>
<form method="post" action="">
姓名3:<input type="text" name="">
</form>
<img src = "" alt = "aa"><img src = "" alt = "bb"><img src = "" alt = "cc">
</body>
即页面会自动帮你生成 表单,图片等的数组集合
网友评论