This is quite similar to an expression that assigns a new value to the innerHTML property of an Element object. In this case, the new HTML leaves the existing HTML intact.
The relative positions where the adjacent HTML can be introduced determine where the new HTML is to be inserted. The following relative positions can be specified:
You cannot call this method while the document is loading.
MSIE version 4 for Macintosh does not support this as widely as the Windows version or later versions of MSIE for Macintosh.
Prev | Home | Next |
Element.innerText | Up | Element.insertAdjacentText() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |