Export (0) Print
Expand All
Information
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.

previousElementSibling property

Retrieves a reference to the immediately preceding sibling element or null if the element does not have any preceding siblings.

Syntax

JavaScript

p = object.previousElementSibling

 

Property values

Type: Object

A reference to the immediately preceding sibling element.

Standards information

See also

a
abbr
address
area
attribute
b
base
bdo
blockQuote
body
button
caption
cite
code
col
colGroup
comment
dd
del
dfn
div
dl
dt
em
embed
fieldSet
form
frame
head
hn
hr
html
i
iframe
img
input type=button
input type=checkbox
input type=email
input type=file
input type=image
input type=number
input type=password
input type=radio
input type=range
input type=reset
input type=search
input type=submit
input type=tel
input type=text
input type=url
ins
kbd
label
legend
li
link
map
menu
ol
option
p
pre
q
s
samp
script
select
small
span
strong
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
title
tr
u
ul
var

 

 

Show:
© 2015 Microsoft