Element.replaceAdjacentText() (Method)

Replace some text adjacent to the element object.

Availability:

JScript - 5.0
Internet Explorer - 5.0
Property/method value type:undefined
JavaScript syntax:IEmyElement.replaceAdjacentText(aRelativePosition, aString)
Argument list:aRelativePositionAn indication of where the new HTML is to be placed
aStringThe new fragment of text to be inserted

This is a close relation to the insertAdjacentText() method. This method will replace the text adjacent to an object rather than add to it.

See also:Element.getAdjacentText(), Element.insertAdjacentText()

insert figure 0048