insertAdjacentText()

This method is used to insert HTML coding in an element relative to the existing HTML code. It should be noted that HTML tags will be shown in the page content.

syntax:

InsertAdjacentText( where , content )

This method is used with the following:

. A
ACRONYM
ADDRESS
APPLET
AREA
B
BIG
BLOCKQUOTE
BODY
BR
BUTTON
CAPTION
CENTER
CITE
CODE
DD
DEL
DFN
DIR
DIV
DL
DT
EM
EMBED
FIELDSET
FONT
FORM
H1
H2
H3
H4
H5
H6
I
IFRAME
IMG
INS
KBD
LABEL
LEGEND
LI LISTING
MARQUEE
MENU
OL
P
PLAINTEXT
PRE
Q
S
SAMP
SCRIPT
SELECT
SMALL
SPAN
STRIKE
STRONG
STYLE
SUB
SUP
TABLE
TBODY
TD
TEXTAREA
TFOOT
TH
THEAD
TR
TT
U
UL
VAR
XMP
button
checkbox
fileUpload
password
radio
reset
submit
text