JavaScript Reference

For further details about any of the JavaScript objects listed below, click on the hyperlinked name to go to the JavaScript reference page for the object. On the object's JavaScript reference page, you will find details about the events, methods, and properties that apply to the object as well as real-world examples of how the object can be used.

Anchor

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • accessKey
  • charset
  • className
  • constructor
  • coords
  • dir
  • href
  • hreflang
  • id
  • innerHTML
  • lang
  • name
  • prototype
  • rel
  • rev
  • shape
  • tabIndex
  • target
  • title
  • type

events

  • onblur
  • onclick
  • ondblclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
Applet

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • prototype

events

Area

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • accessKey
  • charset
  • className
  • coords
  • constructor
  • dir
  • href
  • hreflang
  • id
  • innerHTML
  • lang
  • name
  • prototype
  • rel
  • rev
  • shape
  • tabIndex
  • target
  • title
  • type

events

  • onblur
  • onclick
  • ondblclick
  • onkeydown
  • onkeypress
  • onkeyup
  • onfocus
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
Array

methods

  • concat
  • join
  • pop
  • push
  • reverse
  • shift
  • slice
  • sort
  • splice
  • toSource
  • toString
  • unshift
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • index
  • input
  • length
  • prototype

events

Boolean

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • prototype

events

Button

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • form
  • name
  • prototype
  • type
  • value

events

  • onblur
  • onclick
  • ondblclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
Checkbox

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • checked
  • constructor
  • defaultChecked
  • form
  • name
  • prototype
  • type
  • value

events

  • onblur
  • onchange
  • onclick
  • ondblclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
Constants
  • null
  • undefined
Date

methods

  • getDate
  • getDay
  • getFullYear
  • getHours
  • getMilliseconds
  • getMinutes
  • getMonth
  • getSeconds
  • getTime
  • getTimezoneOffset
  • getUTCDate
  • getUTCDay
  • getUTCFullYear
  • getUTCHours
  • getUTCMilliseconds
  • getUTCMinutes
  • getUTCMonth
  • getUTCSeconds
  • parse
  • setDate
  • setFullYear
  • setHours
  • setMilliseconds
  • setMinutes
  • setMonth
  • setSeconds
  • setTime
  • setUTCDate
  • setUTCFullYear
  • setUTCHours
  • setUTCMilliseconds
  • setUTCMinutes
  • setUTCMonth
  • setUTCSeconds
  • toGMTString
  • toLocaleString
  • toSource
  • toString
  • toUTCString
  • unwatch
  • UTC
  • valueOf
  • watch

properties

  • constructor
  • prototype

events

Document

methods

  • captureEvents
  • close
  • contextual
  • createElement
  • createTextNode
  • getElementById
  • getElementsByName
  • getElementsByTagName
  • getSelection
  • handleEvent
  • open
  • releaseEvents
  • routeEvent
  • toSource
  • toString
  • unwatch
  • valueOf
  • watch
  • write
  • writeLn

properties

  • alinkColor
  • anchors
  • applets
  • bgColor
  • classes
  • cookie
  • constructor
  • domain
  • embeds
  • fgColor
  • formName
  • forms
  • ids
  • images
  • lastModified
  • linkColor
  • links
  • prototype
  • referrer
  • tags
  • title
  • URL
  • vlinkColor

events

  • onclick
  • ondblclick
  • onerror
  • onkeydown
  • onkeypress
  • onkeyup
  • onload
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
  • onunload
Event

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • data
  • height
  • keyCode
  • layerX
  • layerY
  • modifiers
  • pageX
  • pageY
  • prototype
  • screenX
  • screenY
  • srcElement
  • target
  • type
  • which
  • width
  • x
  • y

events

FileUpload

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • form
  • name
  • prototype
  • type
  • value

events

  • onblur
  • onchange
  • ondblclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
Form

methods

  • constructor
  • prototype
  • reset
  • submit
  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • action
  • elements
  • encoding
  • length
  • method
  • target

events

  • onblur
  • ondblclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onreset
  • onresize
  • onsubmit
Frame

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • prototype

events

  • onblur
  • onfocus
  • onload
  • onresize
Frameset

methods

properties

  • accessKey
  • border
  • borderColor
  • cols
  • constructor
  • frameBorder
  • frameSpacing
  • prototype
  • rows
  • tabIndex

events

  • onload
  • onunload
Function

methods

  • apply
  • call
  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • arguments
  • arity
  • constructor
  • length
  • prototype

events

Hidden

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • form
  • name
  • prototype
  • type
  • value

events

History

methods

  • go
  • next
  • previous
  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • current
  • length
  • prototype

events

IFrame

methods

properties

  • align
  • allowTransparency
  • border
  • canHaveChildren
  • canHaveHTML
  • className
  • clientHeight
  • clientWidth
  • constructor
  • contentWindow
  • cursor
  • dataFld
  • datasrc
  • dir
  • disabled
  • end
  • firstChild
  • frameBorder
  • height
  • hideFocus
  • hspace
  • id
  • innerHTML
  • innerText
  • isContentEditable
  • isDisabled
  • isMultiLine
  • isTextEdit
  • lang
  • language
  • lastChild
  • longDesc
  • name
  • nextSibling
  • nodeName
  • nodeType
  • nodeValue
  • offsetHeight
  • offsetLeft
  • offsetParent
  • offsetTop
  • offsetWidth
  • outerHTML
  • outerText
  • ownerDocument
  • parentElement
  • parentNode
  • parentTextEdit
  • previousSibling
  • prototype
  • readyState
  • recordNumber
  • scopeName
  • scrollHeight
  • scrollLeft
  • scrollTop
  • scrollWidth
  • sourceIndex
  • src
  • tabIndex
  • tagName
  • tagUrn
  • title
  • uniqueID
  • vspace
  • width

events

  • onblur
  • onfocus
  • onload
Image

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • border
  • complete
  • constructor
  • height
  • hspace
  • lowsrc
  • prototype
  • src
  • vspace
  • width

events

  • onabort
  • onblur
  • onclick
  • ondblclick
  • onerror
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onload
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
Label

methods

properties

  • constructor
  • htmlFor
  • prototype

events

  • onblur
  • onclick
  • ondblclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • hash
  • host
  • hostname
  • href
  • pathname
  • port
  • protocol
  • prototype
  • search
  • text

events

  • onclick
  • ondblclick
  • onkeydown
  • onkeypress
  • onkeyup
  • onload
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
Location

methods

  • reload
  • replace

properties

  • constructor
  • hash
  • host
  • hostname
  • href
  • pathname
  • port
  • protocol
  • prototype
  • search
  • text

events

Math

methods

  • abs
  • acos
  • asin
  • atan
  • atan2
  • ceil
  • cos
  • eval
  • exp
  • floor
  • log
  • max
  • min
  • pow
  • random
  • round
  • sin
  • sqrt
  • tan
  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • E
  • LN10
  • LN2
  • LOG10E
  • LOG2E
  • PI
  • prototype
  • SQRT1_2
  • SQRT2

events

methods

  • savePreferences

properties

  • appCodeName
  • appName
  • appVersion
  • constructor
  • javaEnabled
  • language
  • mimeTypes
  • platform
  • plugins
  • preference
  • prototype
  • release
  • taintEnabled
  • userAgent

events

Node

methods

  • appendChild
  • cloneNode
  • contains
  • getAttribute
  • insertBefore
  • removeChild

properties

  • action
  • childNodes
  • className
  • constructor
  • firstChild
  • hasChildNodes
  • id
  • innerHTML
  • innerText
  • lastChild
  • nextSibling
  • nodeType
  • parentNode
  • previousSibling
  • prototype
  • tagName

events

NodeList

methods

  • item
  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • length
  • prototype

events

Number

methods

  • toExponential
  • toFixed
  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • MAX_VALUE
  • MIN_VALUE
  • NaN
  • NEGATIVE_INFINITY
  • POSITIVE_INFINITY
  • prototype

events

Object

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • prototype

events

Operators
  • %
  • *
  • +
  • ++
  • -
  • --
  • /
  • &
  • <<
  • >>
  • >>>
  • ^
  • |
  • ~
  • !=
  • !==
  • <
  • >
  • <=
  • >=
  • ==
  • ===
  • !
  • &&
  • ||
  • \
  • +=
  • -=
  • *=
  • /=
Option

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • defaultSelected
  • prototype
  • selected
  • text
  • value

events

Password

methods

  • select
  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • defaultValue
  • form
  • name
  • prototype
  • type
  • value

events

  • onblur
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
Plugins

methods

  • refresh

properties

  • constructor
  • prototype

events

Radio

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • checked
  • constructor
  • defaultChecked
  • form
  • name
  • prototype
  • type
  • value

events

  • onblur
  • onclick
  • ondblclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
RegExp

methods

  • compile
  • exec
  • test
  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • $
  • $&
  • $'
  • $*
  • $+
  • $`
  • $1
  • $2
  • $3
  • $4
  • $5
  • $6
  • $7
  • $8
  • $9
  • constructor
  • global
  • ignoreCase
  • input
  • lastIndex
  • lastMatch
  • lastParen
  • leftContext
  • multiline
  • prototype
  • rightContext
  • source

events

Reset

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • form
  • name
  • prototype
  • type
  • value

events

  • onblur
  • onclick
  • ondblclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
Screen

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • availHeight
  • availWidth
  • colorDepth
  • constructor
  • height
  • pixelDepth
  • prototype
  • width

events

Select

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • form
  • length
  • name
  • options
  • prototype
  • selectedIndex
  • type

events

  • onblur
  • onchange
  • ondblclick
  • onclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
Statements
  • break
  • catch
  • continue
  • delete
  • do
  • export
  • for
  • if
  • inline if
  • import
  • new
  • return
  • switch
  • this
  • throw
  • try
  • typeOf
  • void
  • while
  • with
Style

methods

  • getAttribute
  • setAttribute

properties

  • background
  • backgroundAttachment
  • backgroundColor
  • backgroundImage
  • backgroundPosition
  • backgroundPositionX
  • backgroundPositionY
  • backgroundRepeat
  • border
  • borderBottom
  • borderBottomColor
  • borderBottomStyle
  • borderBottomWidth
  • borderCollapse
  • borderColor
  • borderLeft
  • borderLeftColor
  • borderLeftStyle
  • borderLeftWidth
  • borderRight
  • borderRightColor
  • borderRightStyle
  • borderRightWidth
  • borderSpacing
  • borderStyle
  • borderTop
  • borderTopColor
  • borderTopStyle
  • borderTopWidth
  • borderWidth
  • bottom
  • captionSide
  • clear
  • clip
  • bottom
  • left
  • right
  • top
  • color
  • content
  • counterIncrement
  • counterReset
  • cssFloat
  • cursor
  • direction
  • display
  • emptyCells
  • font
  • fontFamily
  • fontSize
  • fontSizeAdjust
  • fontStretch
  • fontStyle
  • fontVariant
  • fontWeight
  • height
  • left
  • letterSpacing
  • lineHeight
  • listStyle
  • listStyleImage
  • listStylePosition
  • listStyleType
  • margin
  • marginBottom
  • marginLeft
  • marginRight
  • marginTop
  • markerOffset
  • marks
  • maxHeight
  • maxWidth
  • minHeight
  • minWidth
  • orphans
  • outline
  • outlineColor
  • outlineStyle
  • outlineWidth
  • overflow
  • overflowX
  • overflowY
  • padding
  • paddingBottom
  • paddingLeft
  • paddingRight
  • paddingTop
  • page
  • pageBreakAfter
  • pageBreakBefore
  • pageBreakInside
  • position
  • quotes
  • right
  • styleFloat
  • tableLayout
  • textAlign
  • textDecoration
  • textDecorationBlink
  • textDecorationLineThrough
  • textDecorationNone
  • textDecorationOverline
  • textDecorationUnderline
  • textIndent
  • textShadow
  • textTransform
  • top
  • unicodeBidi
  • verticalAlign
  • visibility
  • whiteSpace
  • widows
  • width
  • wordSpacing
  • zIndex

events

String

methods

  • anchor
  • big
  • blink
  • bold
  • charAt
  • charCodeAt
  • concat
  • fixed
  • fontcolor
  • fontsize
  • fromCharCode
  • indexOf
  • italics
  • lastIndexOf
  • link
  • match
  • replace
  • search
  • slice
  • small
  • split
  • strike
  • sub
  • substr
  • substring
  • sup
  • toLowerCase
  • toSource
  • toString
  • toUpperCase
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • length
  • prototype

events

Submit

methods

  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • form
  • name
  • prototype
  • type
  • value

events

  • onblur
  • onclick
  • ondblclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
Table

methods

  • createCaption
  • createTFoot
  • createTHead
  • deleteCaption
  • deleteRow
  • deleteTFoot
  • deleteTHead
  • insertRow

properties

  • border
  • caption
  • cellPadding
  • cells
  • cellSpacing
  • className
  • constructor
  • dir
  • frame
  • id
  • lang
  • prototype
  • rows
  • rules
  • summary
  • tBodies
  • tFoot
  • tHead
  • title
  • width

events

  • onblur
  • onclick
  • ondblclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
TableCell

methods

properties

  • abbr
  • align
  • axis
  • cellIndex
  • ch
  • chOff
  • className
  • colSpan
  • constructor
  • dir
  • headers
  • id
  • innerHTML
  • lang
  • noWrap
  • prototype
  • rowSpan
  • scope
  • title
  • vAlign
  • width

events

  • onblur
  • onclick
  • ondblclick
  • onkeydown
  • onkeypress
  • onkeyup
  • onfocus
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
TableRow

methods

  • deleteCell
  • insertCell

properties

  • align
  • cells
  • ch
  • chOff
  • constructor
  • id
  • innerHTML
  • prototype
  • rowIndex
  • sectionRowIndex
  • vAlign

events

  • onblur
  • onclick
  • ondblclick
  • onkeydown
  • onkeypress
  • onkeyup
  • onfocus
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
Text

methods

  • select
  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • defaultValue
  • form
  • name
  • prototype
  • type
  • value

events

  • onblur
  • onchange
  • ondblclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
  • onselect
TextArea

methods

  • select
  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • constructor
  • defaultValue
  • form
  • name
  • prototype
  • type
  • value

events

  • onblur
  • onchange
  • onclick
  • ondblclick
  • onfocus
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmouseout
  • onmouseover
  • onmouseup
  • onresize
  • onselect
Window

methods

  • alert
  • atob
  • back
  • blur
  • btoa
  • captureEvents
  • clearInterval
  • clearTimeout
  • close
  • confirm
  • disableExternalCapture
  • enableExternalCapture
  • find
  • focus
  • forward
  • handleEvent
  • home
  • moveBy
  • moveTo
  • open
  • print
  • prompt
  • releaseEvents
  • resizeBy
  • resizeTo
  • routeEvent
  • scrollBy
  • scrollTo
  • setHotKeys
  • setInterval
  • setResizable
  • setTimeout
  • setZOptions
  • stop
  • toSource
  • toString
  • unwatch
  • valueOf
  • watch

properties

  • closed
  • constructor
  • crypto
  • defaultStatus
  • document
  • frames
  • history
  • innerHeight
  • innerWidth
  • location
  • locationbar
  • menubar
  • name
  • offscreenBuffering
  • opener
  • outerHeight
  • outerWidth
  • pageXOffset
  • pageYOffset
  • parent
  • personalbar
  • prototype
  • screenX
  • screenY
  • scrollbars
  • self
  • status
  • statusbar
  • toolbar
  • top
  • window

events

  • onblur
  • onerror
  • onfocus
  • onload
  • onmousemove
  • onresize
  • onunload