DHTML Methods
Inserts the given text into the element at the given location. The text is inserted as plain text.
object.insertAdjacentText ( sWhere, sText )
sWhere |
Required. Location to insert the text. This can be one of the following:
beforeBegin |
Inserts the text immediately before the element. |
afterBegin |
Inserts the text after the start of the element but before all other content in the element. |
beforeEnd |
Inserts the text immediately before the end of the element but after all other content in the element. |
afterEnd |
Inserts the text immediately after the end of the element. | |
sText |
Required. Text to insert. |
No return value.
You cannot insert text while the document is loading. Wait for the onload event before attempting to call this method.
innerText, insertAdjacentHTML, outerText