IE's DHTML object provides four readable and writable properties to dynamically manipulate page elements: InnerText, OuteText, InnerHtml, OuterHTML. Trying to pay attention to two points: 1. InnerText, OuterText property is presented as ordinary text, Even if it contains an HTML tag, the innerhtml, OUTERHTML is presented by the HTML engine to parse the text, which can react with the performance of the HTML tag in attributes. 2. Assign the object to the Outertext, OuterHTML property of the object (ie, write) will delete the object. The assignment operation of the above four attributes is just the text content of the original object. If you want to add text content in the page, you need to use the INSERTADJACENTHTML and INSERTADJACENTTEXT methods. The form is as follows: Object.insertAdjaceText (Swhere, Stext) Object.insertAdjacenthtml (Swhere, Stext) where Swhere indicates the position of the inserted text relative to the HTML tag: BeforeBegin, AforeGin, Beforeend, Afterend is required Pay attention to the following points: 1. These two methods must be used after the entire document is loaded, otherwise it will be wrong. 2. INSERTADJACETTEXT can only insert normal text, INSERTADJACENTHTML inserts text 3 in HTML format. Insert scripts with INSERTADJACENTHTML, you must use the defer attribute in the Script element, otherwise the script executes the run error 4. After INSERTADJACENTHTML is inserted into the HTML element, all, and other possible elements set will automatically update to react dynamic changes. The SourceIndex property of the next subsequent element will change. 5. This method may have a runtime error when it gives an INSERTHTML / OTERHTML attribute. If the following code will be wrong: