document对象的集合属性
2016-11-28 13:54
246 查看
<title>document对象</title>
</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>
</html>
</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>
</html>
相关文章推荐
- JavaScipt的Document对象属性集合
- document 对象属性集合
- JavaScript HTML DOM节点类型之Document类型(Document对象属性和Document对象集合属性)
- 自定义UserControl中包含封装了集合对象的属性被设计器自动初始化所引起的错误
- Javascript的document对象的属性应用
- [.NET 3.x新特性一]自动属性,对象初始化及集合初始化
- 建立可对任意属性排序的对象集合
- [.NET 3.x新特性一]自动属性,对象初始化及集合初始化
- UserControl 中包含封装了集合对象的属性被设计器自动初始化所引起的错误!也有关于List的问题
- JAVA中根据集合中对象属性排序的方法
- UserControl 中包含封装了集合对象的属性被设计器自动初始化所引起的错误!也有关于List的问题
- 3、步步为营VS 2008 + .NET 3.5(3) - C# 3.0新特性之Automatic Properties(自动属性)、Object Initializers(对象初始化器)、Collection Initializers(集合初始化器)和Extension Methods(扩展方法)
- javascript的Document对象——属性
- 解决document.form.submit()对象不支持此属性或方法
- document对象的属性
- document对象属性
- 获得文档信息(document对象的几个属性)
- document对象的属性和方法
- masterpage中服务器端控件命名规则和如何用控件名取得document中的对象,用js动态设置控件事件和属性
- 浏览器对象之遍历window的属性,document.write类似于response.write