replaceAdjacentText Method

DHTML, HTML, & CSS

 
Click to return to the DHTML, HTML & CSS home page    
replace Method     replaceChild Method     DHTML Methods    

replaceAdjacentText Method


Replaces the adjacent text character.

Syntax

object.replaceAdjacentText(sWhere, sReplaceText)

Parameters

sWhereRequired. String that specifies where to locate the replacement text, using one of the following values:
beforeBeginReplaces text immediately before the element.
afterBeginReplaces text after the start of the element but before all other content in the element.
beforeEndReplaces text immediately before the end of the element but after all other content in the element.
afterEndReplaces text immediately after the end of the element.
sReplaceTextRequired. String that specifies the replacement text.

Return Value

No return value.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.