Javascript Object Reference: Objects
Javascript Object Reference: Objects
JavaScript has a wide variety of objects you can use when programming, and
each of them have different properties you can control or display through the use
of methods. This table should make your programming jobs in JavaScript a little
easier.
Objects
Anchor
Applet
Array
Boolean
Button
Checkbox
Date
document
event
FileUpload
form
Frame
Function
Hidden
History
Image
Java
JavaArray
JavaClass
JavaObject
JavaPackage
Layer
Link
Location
Math
MimeType
Navigator
netscape
Number
Object
Option
Packages
Password
Plugin
Radio
RegExp
Reset
screen
Select
String
Style
Submit
Sun
Text
Textarea
window
Anchor
Properties
Name
Description
Ver.
name
1.2
text
1.2
1.2
1.2
Applet
Properties
Name
Description
Ver.
The Applet object inherits all public properties of the Java applet.
Methods
Name
Description
Ver.
The Applet object inherits all public methods of the Java applet.
Array
Properties
Name
Description
Ver.
1.1
index
input
1.1
length
1.3
prototype
1.1
Name
Description
Ver.
concat
1.1
join
1.1
pop
1.1
push
1.3
reverse
shift
Methods
1.1
slice
1.1
splice
1.3
sort
1.1
toSource
1.3
toString
1.1
unshift
1.1
valueOf
1.1
Description
Ver.
1.1
Methods
Name
Description
Ver.
toSource
toString
valueOf
1.1
Description
Ver.
form
name
1.0
type
1.1
value
1.0
Name
Description
Ver.
blur
1.1
click
1.0
focus
1.1
Methods
1.2
Description
Ver.
checked
1.0
1.0
form
1.0
name
1.0
type
1.1
value
1.0
Name
Description
Ver.
blur
1.1
click
1.0
focus
1.1
handleEvent
Methods
Description
Ver.
constructor
1.0
prototype
1.0
Methods
Name
Description
Ver.
getDate
1.0
getDay
1.0
getFullYear
1.3
getHours
1.0
getMilliseconds
1.3
getMinutes
1.0
getMonth
1.0
getSeconds
1.0
getTime
getTimezoneOffset
getUTCDate
getUTCDay
1.3
getUTCFullYear
1.3
getUTCHours
1.3
1.0
1.3
getUTCMinutes
1.3
getUTCMonth
1.3
getUTCSeconds
1.3
getYear
1.0
parse
setDate
1.0
setFullYear
1.3
setHours
1.0
setMilliseconds
1.3
setMinutes
1.0
setMonth
1.0
setSeconds
setTime
1.0
setUTCDate
1.3
setUTCFullYear
1.3
setUTCHours
1.3
1.3
setUTCMinutes
1.3
setUTCMonth
1.3
setUTCSeconds
1.3
setYear
1.3
toGMTString
1.0
toLocaleString
1.0
toSource
toString
1.0
toUTCString
1.0
UTC
1.0
1.0
Description
Ver.
alinkColor
1.0
anchors
1.0
applets
1.1
bgColor
1.0
classes
1.2
cookie
Specifies a cookie.
1.0
domain
1.0
embeds
fgColor
formName
forms
height
1.0
ids
1.2
images
lastModified
layers
1.2
linkColor
1.0
1.0
links
1.0
plugins
referrer
tags
1.2
title
1.0
URL
vlinkColor
1.0
width
1.0
Description
Ver.
Methods
Name
1.2
close
1.0
contextual
1.2
getSelection
1.2
handleEvent
1.2
open
1.2
routeEvent
1.2
write
1.0
writeln
1.0
event
Properties
Name
Description
data
height
layerX
layerY
Ver.
1.2
1.2
1.2
pageX
pageY
screenX
screenY
target
which
width
1.2
layerX.
1.2
layerY.
1.2
1.2
1.2
Description
Ver.
form
1.0
name
1.0
type
1.1
value
1.0
Name
Description
Ver.
blur
1.0
focus
1.0
Methods
1.2
select
1.0
Description
Ver.
action
ACTION attribute.
1.0
elements
1.0
encoding
ENCTYPE attribute.
1.0
length
1.0
method
METHOD attribute.
1.0
name
NAME attribute.
1.0
target
TARGET attribute.
1.0
Description
Ver.
Methods
Name
1.2
reset
1.1
submit
Submits a form.
1.0
Description
Ver.
closed
1.1
crypto
1.2
defaultStatus
1.0
document
1.0
frames
history
innerHeight
innerWidth
length
1.0
location
1.0
locationbar
1.2
menubar
1.2
name
1.0
offscreenBuffering
1.2
opener
outerHeight
outerWidth
pageXOffset
pageYOffset
1.1
parent
1.0
personalbar
1.2
screenX
1.2
screenY
1.2
scrollbars
1.2
self
status
statusbar
toolbar
top
window
Methods
Name
Description
alert
atob
back
blur
btoa
captureEvents
clearInterval
Ver.
clearTimeout
close
confirm
crypto.random
crypto.signText
focus
forward
handleEvent
home
moveBy
moveTo
open
prompt
releaseEvents
resizeBy
resizeTo
routeEvent
scroll
scrollBy
scrollTo
setHotKeys
setInterval
setResizable
setTimeout
setZOptions
stop
Description
arguments
arity
Ver.
1.2
1.1
length
prototype
1.1
Name
Description
Ver.
apply
call
1.3
toSource
1.3
toString
1.1
valueOf
1.1
Methods
Description
Ver.
form
1.0
name
1.1
type
1.1
value
1.0
Description
Ver.
current
1.1
length
1.0
Next
1.1
1.1
Methods
Name
Description
Ver.
back
1.0
forward
1.0
Go
1.0
Description
Ver.
border
1.1
complete
height
1.1
hspace
1.1
lowsrc
1.1
name
1.1
Src
1.1
vspace
1.1
width
1.1
Description
Ver.
Methods
Name
1.1
JavaScript Objects
This is a table of the most commonly used JavaScript objects, with all of their properties,
methods, and event handlers.
Hierarchy Objects
Object
Properties
Methods
Event Handlers
Window
defaultStatus
frames
opener
parent
scroll
self
status
top
window
alert
blur
close
confirm
focus
open
prompt
clearTimeout
setTimeout
onLoad
onUnload
onBlur
onFocus
Frame
defaultStatus
frames
opener
parent
scroll
self
status
top
window
alert
none (The onLoad and onUnload
blur
event handlers belong to the Window
close
object)
confirm
focus
open
prompt
clearTimeout
setTimeout
Location
hash
host
hostname
href
pathname
por
protocol
search
reload
replace
none
History
length
forward
go
back
none
none
userAgent
document alinkColor
anchors
applets
area
bgColor
cookie
fgColor
forms
images
lastModified
linkColor
links
location
referrer
title
vlinkColor
clear
close
open
write
writeln
image
border
complete
height
hspace
lowsrc
name
src
vspace
width
none
none
form
action
elements
encoding
FileUpload
method
name
target
submit
reset
onSubmit
onReset
text
defaultValue
name
type
value
focus
blur
select
onBlur
onCharge
onFocus
onSelect
Built-in Objects
Array
length
join
reverse
sort xx
none
Date
none
getDate
getDay
getHours
getMinutes
getMonth
getSeconds
getTime
getTimeZoneoffset
getYear
parse
prototype
setDate
setHours
setMinutes
setMonth
setSeconds
setTime
setYear
toGMTString
toLocaleString
UTC
none
String
length
prototype
anchor
big
blink
bold
charAt
fixed
fontColor
fontSize
indexOf
italics
lastIndexOf
link
small
split
strike
sub
substring
sup
toLowerCase
toUpperCase
Window