The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Replaces the text adjacent to the element.
Syntax
object.replaceAdjacentText(where, newText)Parameters
- where [in]
-
Type: String
A String that specifies where to locate the replacement text, using one of the following values.
beforeBegin
-
Replaces text immediately before the element.
afterBegin
-
Replaces text after the start of the element, but before all other content in the element.
beforeEnd
-
Replaces text immediately before the end of the element, but after all other content in the element.
afterEnd
-
Replaces text immediately after the end of the element.
- newText [in]
-
Type: String
A String that specifies the replacement text.
Return value
Type: String
A pointer to a String returning the old text.
Standards information
There are no standards that apply here.
See also
- a
- abbr
- acronym
- address
- applet
- area
- article
- aside
- b
- base
- baseFont
- bgSound
- big
- blockQuote
- body
- br
- button
- caption
- center
- cite
- code
- col
- colGroup
- comment
- custom
- dd
- del
- dfn
- dir
- div
- dl
- dt
- em
- embed
- fieldSet
- figcaption
- figure
- font
- footer
- form
- frame
- frameSet
- head
- header
- hgroup
- 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
- isIndex
- kbd
- label
- legend
- li
- link
- listing
- map
- mark
- marquee
- menu
- nav
- nextID
- noBR
- noFrames
- noScript
- object
- ol
- option
- p
- plainText
- pre
- q
- rt
- ruby
- s
- samp
- script
- section
- select
- small
- span
- strike
- strong
- style
- sub
- sup
- table
- tBody
- td
- textArea
- tFoot
- th
- tHead
- title
- tr
- tt
- u
- ul
- var
- wbr
- xml
- xmp
- Reference
- applyElement
- getAdjacentText
- insertAdjacentElement
Send comments about this topic to Microsoft
Build date: 11/28/2012