<form action="" name="lee">
<input type="text">
</form>
var form = document.getElementsByTagName(‘form‘)[0]
console.log(form)
var form = document.forms.item(0)
console.log(form)
var form = document.forms.namedItem(‘lee‘)
console.log(form)
<form action="" name="lee">
<input type="text">
</form>
1、document.all
2、document.anchors
3、document.forms
4、document.images
5、document.links
原文:http://blog.51cto.com/12173069/2085855