Javascript-dom Learning
DOM document (HTML) object Modle
Document object (Dom core object)
What can dom be used for?
The style of the HTML element (color, size, position, and so on), content, genus
Dynamic change and operation.
Document Object
? First, the attribute
? Title Returns or sets the caption of the current document
? Method:
? getElementById (idname) returns the index of the (first) object with the specified ID.
Use
? getElementsByTagName (tagname) returns the object with the specified label name.
Collection
? Getelementsbyname (name) returns the object with the specified name
The collection
? Getelementsbyclassname () Returns the object with the specified name of the specified class.
Collection
Document Object Collection
All[] The collection of all elements has only ie this element so it can be used
He distinguishes between IE and other browsers
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
Javascript-dom Learning