//包含在document中的所有的元素的数量
all:Returns a reference to the collection of elements contained by the object.
length:Sets or retrieves the number of objects in a collection.for(i = 0; i < document.all.length; i++){
   alert(document.all(i).tagName);
}