asp.net.ph

Skip Navigation Links

replaceAdjacentText Method

DHTML Methods


Replaces the adjacent text character.

Syntax

object.replaceAdjacentText ( sWhere, sReplaceText ) 
Parameters

sWhere Required. Specifies the position where the text to be replaced is located. This position 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.

sReplaceText Required. Specifies the replacement text.



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note