Each element and their attributes in the page can be accessed through these attributes, and each tag can access their attributes through their corresponding array.
1: forms array object: a collection of all form tags in the code web page
2: Anchors array object: specifies the collection of all <a> tags in the web page that specify the name or id attribute, but does not include the set of href tags that are specified.
Three: The links array object refers to the collection of all <a> tags that specify the href attribute.
Four: images array object: specifies the collection of all <img> tags in the document
Five: scripts array object: represents the collection of all <script> tags in the document
Six: applets array object: represents the collection of all <applets> tags in the document
7: all array object: represents all tags in all documents
Eight: styleSheets array object: a collection of all style sheets introduced in the document
9: Body object: represents the HTML sub-element enclosed in the <body> tag pair in the document, which can be referenced as an attribute of the body object.
10: title object: represents the <title> tag pair in the document, used to set and reference the content on the web page tag bar
Examples of their citations:
document.all.imag1.src
document.images.imag1.src
document.images.item("imag1").src
document.images.item(0).src
The same method can be used to access other elements. Of course, the name or ID attribute must be specified for the object to be accessed. As long as you remember these object arrays, you can access their corresponding sub-elements through their names, so just remember The meanings represented by the above ten elements make it easy to access and set every element in the web document...