insertAdjacentHTML()

This method is used to insert HTML code or plain text in a location relative to an existing HTML element. If HTML code is part of the text, the HTML code will be rendered by the browser.

syntax:

insertAdjacentHTML(where , plaintext or HTML code)

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