{{{{ Reserved words in JavaScript and HTML }}}}

These words have specialised use within JavaScript and HTML. You are strongly advised not to use them as data names. You might get away with it under certain circunstances, but frankly, it's not worth the risk!

abbr
abs
accept
acceptCharset
accessKey
acos
action
addEventListener
adoptNode
alert
align
aLink
alt
anchor
anchors
appCodeName
appendChild
applets
appName
appVersion
archive
asin
assign
atan2
atan
attributes
availHeight
availWidth
axis

back
background
backgroundAttachment
backgroundColor
backgroundImage
backgroundPosition
backgroundRepeat
baseURI
bgColor
big
blink
blur
body
bold
Border/Outline
border
borderBottom
borderBottomColor
borderBottomStyle
borderBottomWidth
borderCollapse
borderColor
borderLeft
borderLeftColor
borderLeftStyle
borderLeftWidth
borderRight
borderRightColor
borderRightStyle
borderRightWidth
borderSpacing
borderStyle
borderTop
borderTopColor
borderTopStyle
borderTopWidth
borderWidth
bottom
break
bubbles

cancelable
caption
captionSide
case
catch
ceil
cellIndex
cellPadding
cells
cellSpacing
ch
charAt
charCodeAt
charset
checked
childNodes
chOff
className
clear
clearInterval
clearTimeout
clientHeight
clientWidth
clip
cloneNode
close
closed
code
codeBase
codeType
color
colorDepth
cols
colSpan
compareDocumentPosition
compile
complete
concat
confirm
constructor
content
contentDocument
contentWindow
continue
cookie
cookieEnabled
coords
cos
createAttribute
createCaption
createComment
createDocumentFragment
createElement
createEvent
createPopup
createTextNode
createTFoot
createTHead
cssFloat
currentTarget
cursor

data
declare
decodeURI
decodeURIComponent
default
defaultChecked
defaultSelected
defaultStatus
defaultValue
delete
deleteCaption
deleteCell
deleteRow
deleteTFoot
deleteTHead
dir
direction
disabled
dispatchEvent
display
do
doctype
document
domain
domConfig

E
element
elements
emptyCells
encodeURI
encodeURIComponent
enctype
escape
eval
eventPhase
exec
exp

false
finally
firstChild
fixed
floor
focus
font
fontcolor
fontFamily
fontsize
fontSize
fontSizeAdjust
fontStyle
fontVariant
fontWeight
for
form
forms
forward
frame
frameBorder
frames
fromCharCode
function

getAttribute
getAttributeNode
getDate
getDay
getElementById
getElementsByName
getElementsByTagName
getFeature
getFullYear
getHours
getMilliseconds
getMinutes
getMonth
getNamedItem
getSeconds
getTime
getTimezoneOffset
getUserData
getUTCDate
getUTCDay
getUTCFullYear
getUTCHours
getUTCMilliseconds
getUTCMinutes
getUTCMonth
getUTCSeconds
getYear
go
goto

handleEvent
hasAttribute
hasAttributes
hasChildNodes
hash
headers
height
history
host
hostname
href
hreflang
hspace
httpEquiv

id
if
images
implementation
importNode
in
index
indexOf
Infinity
initEvent
innerHeight
innerHTML
innerWidth
inputEncoding
insertBefore
insertCell
insertRow
instanceof
isDefaultNamespace
isEqualNode
isFinite
isId
isNaN
isSameNode
isSupported
italics
item

javaEnabled
join

lang
lastChild
lastIndexOf
lastModified
left
length
letterSpacing
lineHeight
link
link
links
listStyle
listStyleImage
listStylePosition
listStyleType
LN10
LN2
location
LOG10E
LOG2E
log
longDesc
lowsrc

margin
marginBottom
marginHeight
marginLeft
marginRight
marginTop
marginWidth
match
max
MAX_VALUE
maxHeight
maxLength
maxWidth
media
method
min
MIN_VALUE
minHeight
minWidth
moveBy
moveTo
multiple

name
namespaceURI
NaN
navigator
NEGATIVE_INFINITY
new
nextSibling
nodeName
nodeType
nodeValue
noHref
noResize
normalize
normalizeDocument
noWrap
null
Number

ode
offsetHeight
offsetLeft
offsetParent
offsetTop
offsetWidth
onabort
onblur
onchange
onclick
ondblclick
onerror
onfocus
onLine
onload
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
onreset
onresize
onscroll
onselect
onsubmit
onunload
open
opener
orphans
outerHeight
outerWidth
outline
outlineColor
outlineStyle
outlineWidth
overflow
ownerDocument

padding
paddingBottom
paddingLeft
paddingRight
paddingTop
pageBreakAfter
pageBreakBefore
pageBreakInside
pageXOffset
pageYOffset
parent
parentNode
parse
parseFloat
parseInt
pathname
PI
pixelDepth
platform
pop
port
position
POSITIVE_INFINITY
pow
preventDefault
previousSibling
print
prompt
protocol
prototype
push

quotes

random
readOnly
readyState
referrer
rel
reload
removeAttribute
removeAttributeNode
removeChild
removeEventListener
removeNamedItem
renameNode
replace
replaceChild
reset
resizeBy
resizeTo
return
rev
reverse
RI
right
round
rowIndex
rows
rowSpan
rules

scheme
screen
screenLeft
screenTop
screenX
screenY
scroll
scrollBy
scrollHeight
scrolling
scrollLeft
scrollTo
scrollTop
scrollWidth
search
sectionRowIndex
select
selected
selectedIndex
self
setAttribute
setAttributeNode
setDate
setFullYear
setHours
setIdAttribute
setIdAttributeNode
setInterval
setMilliseconds
setMinutes
setMonth
setNamedItem
setSeconds
setTime
setTimeout
setUserData
setUTCDate
setUTCFullYear
setUTCHours
setUTCMilliseconds
setUTCMinutes
setUTCMonth
setUTCSeconds
setYear
shape
shift
sin
size
slice
small
sort
specified
splice
split
SQRT1_2
SQRT2
sqrt
src
Standard
standby
status
stopPropagation
strictErrorChecking
strike
String
style
sub
submit
substr
substring
summary
sup
switch

tabIndex
Table
tableLayout
tagName
taintEnabled
tan
target
tBodies
test
text
textAlign
textContent
textDecoration
textIndent
textShadow
textTransform
tFoot
tHead
throw
timeStamp
title
toDateString
toExponential
toFixed
toGMTString
toISOString
toJSON
toLocaleDateString
toLocaleString
toLocaleTimeString
toLowerCase
top
toPrecision
toString
toTimeString
toUpperCase
toUTCString
trim
true
try
type
typeof

undefined
unescape
unicodeBidi
unshift
URL
useMap
userAgent
UTC

vAlign
value
valueOf
var
verticalAlign
visibility
vLink
vspace

while
whiteSpace
widows
width
with
wordSpacing
write
writeln

zIndex


Return to JavaScript index

© Jo Edkins 2014