Previous Page
Next Page

The Big Object Table

No JavaScript book is complete without the whopping big table of JavaScript objects, along with their associated properties, methods, and event handlers (check Chapter 1 for definitions of these terms). Table A.3 covers most of the JavaScript objects in the language up through and including JavaScript 1.5. We've omitted a few very obscure objects, as well as some older objects from earlier versions that have been superseded by new or extended objects in version 1.5.

Table A.3. JavaScript Object Table

Object

Properties

Methods

Event Handlers

Anchor

name

none

none

 

text

  
 

x

  
 

y

  

anchors array

length

none

none

Applet

align

applet's methods

onblur

 

code

blur

onclick

 

codeBase

focus

ondblclick

 

height

 

onfocus

 

hspace

 

onhelp

 

name

 

onkeydown

 

vspace

 

onkeypress

 

width

 

onkeyup

   

onload

   

onmousedown

   

onmousemove

   

onmouseout

   

onmouseover

   

onmouseup

   

onresize

   

onscroll

applets array

length

none

none

Area

alt

none

onblur

 

cords

 

onclick

 

hash

 

ondblclick

 

host

 

onfocus

 

hostname

 

onhelp

 

href

 

onkeydown

 

noHref

 

onkeypress

 

pathname

 

onkeyup

 

port

 

onload

 

protocol

 

onmousedown

 

search

 

onmousemove

 

shape

 

onmouseout

 

target

 

onmouseover

   

onmouseup

   

onresize

Array

length

concat

none

  

join

 
  

pop

 
  

push

 
  

reverse

 
  

shift

 
  

slice

 
  

sort

 
  

splice

 
  

toLocaleString

 
  

toString

 
  

unshift

 

Body

alink

createTextRange

onblur

 

background

 

onclick

 

bgColor

 

ondblclick

 

bgProperties

 

onfocus

 

bottomMargin

 

onhelp

 

leftMargin

 

onkeydown

 

link

 

onkeypress

 

noWrap

 

onkeyup

 

rightMargin

 

onmousedown

 

scroll

 

onmousemove

 

scrollLeft

 

onmouseout

 

scrollTop

 

onmouseover

 

text

 

onmouseup

 

topMargin

 

onresize

 

vlink

 

onscroll

Button

form

blur

onblur

 

name

click

onchange

 

type

focus

onclick

 

value

handleEvent

ondblclick

   

onfocus

   

onhelp

   

onkeydown

   

onkeypress

   

onkeyup

   

onmousedown

   

onmousemove

   

onmouseout

   

onmouseover

   

onmouseup

   

onselect

Checkbox

checked

blur

onblur

 

defaultChecked

click

onchange

 

form

focus

onclick

 

name

handleEvent

ondblclick

 

type

 

onfocus

 

value

 

onhelp

   

onkeydown

   

onkeypress

   

onkeyup

   

onmousedown

   

onmousemove

   

onmouseout

   

onmouseover

   

onmouseup

   

onselect

Date

none

getDate

none

  

getDay

 
  

getFullYear

 
  

getHours

 
  

getMilliseconds

 
  

getMinutes

 
  

getMonth

 
  

getSeconds

 
  

getTime

 
  

getTimezoneOffset

 
  

getUTCDate

 
  

getUTCDay

 
  

getUTCFullYear

 
  

getUTCHours

 
  

getUTCMilliseconds

 
  

getUTCMinutes

 
  

getUTCMonth

 
  

getUTCSeconds

 
  

getYear

 
  

parse

 
  

setDate

 
  

setFullYear

 
  

setHours

 
  

setMilliseconds

 
  

setMinutes

 
  

setMonth

 
  

setSeconds

 
  

setTime

 
  

setUTCDate

 
  

setUTCFullYear

 
  

setUTCHours

 
  

setUTCMilliseconds

 
  

setUTCMinutes

 
  

setUTCMonth

 
  

setUTCSeconds

 
  

setYear

 
  

toGMTString

 
  

toLocaleDateString

 
  

toLocaleString

 
  

toLocaleTimeString

 
  

toString

 
  

toUTCString

 
  

UTC

 
  

valueOf

 

document

activeElement

clear

onblur

 

alinkColor

close

onclick

 

all

createElement

oncut

 

Anchor

createStylesheet

ondblclick

 

anchors

createTextNode

onfocus

 

Applet

elementFromPoint

onhelp

 

applets

focus

onkeydown

 

Area

getElementByld

onkeypress

 

areas

getElementsByName

onkeyup

 

attributes

getElementsByTagName

onmousedown

 

bgColor

getSelection

onmousemove

 

Body

handleEvent

onmouseout

 

charset

open

onmouseover

 

childNodes

write

onmouseup

 

children

writeln

onpaste

 

cookie

 

onresize

 

defaultCharset

  
 

documentElement

  
 

domain

  
 

embed

  
 

embeds

  
 

expando

  
 

fgColor

  
 

firstChild

  
 

Form

  
 

forms

  
 

height

  
 

Image

  
 

images

  
 

lastChild

  
 

lastModified

  
 

Layer

  
 

layers

  
 

linkColor

  
 

Link

  
 

links

  
 

location

  
 

namespaceURI

  
 

nextSibling

  
 

nodeName

  
 

nodeType

  
 

parentNode

  
 

parentWindow

  
 

plugins

  
 

previousSibling

  
 

readyState

  
 

referrer

  
 

Script

  
 

scripts

  
 

StyleSheet

  
 

styleSheets

  
 

title

  
 

URL

  
 

vlinkColor

  
 

width

  

FileUpload

form

blur

onblur

 

name

focus

onchange

 

type

handleEvent

onclick

 

value

select

ondblclick

   

onfocus

   

onhelp

   

onkeydown

   

onkeypress

   

onkeyup

   

onmousedown

   

onmousemove

   

onmouseout

   

onmouseover

   

onmouseup

   

onselect

Form

action

handleEvent

onclick

 

Button

reset

ondblclick

 

Checkbox

submit

onhelp

 

elements

 

onkeydown

 

encoding

 

onkeypress

 

encType

 

onkeyup

 

FileUpload

 

onmousedown

 

Hidden

 

onmousemove

 

length

 

onmouseout

 

method

 

onmouseover

 

name

 

onmouseup

 

Password

 

onreset

 

Radio

 

onsubmit

 

Reset

  
 

Select

  
 

Submit

  
 

target

  
 

Text

  
 

Textarea

  

forms array

length

none

none

frames array

length

none

none

Hidden

form

none

none

 

maxLength

  
 

name

  
 

readOnly

  
 

size

  
 

type

  
 

value

  

History

current

back

none

 

length

forward

 
 

next

go

 
 

previous

  

history array

length

none

none

Image

align

none

onabort

 

alt

 

onblur

 

border

 

onchange

 

complete

 

onclick

 

height

 

ondblclick

 

href

 

onerror

 

hspace

 

onfocus

 

isMap

 

onhelp

 

lowsrc

 

onkeydown

 

name

 

onkeypress

 

src

 

onkeyup

 

useMap

 

onload

 

vspace

 

onmousedown

 

width

 

onmousemove

 

x

 

onmouseout

 

y

 

onmouseover

   

onmouseup

   

onreset

   

onresize

   

onscroll

   

onsubmit

images array

length

none

none

Layer

above

load

onblur

 

background

moveAbove

onfocus

 

below

moveBelow

onload

 

bgColor

moveBy

onmouseout

 

clip

moveTo

onmouseover

 

document

moveToAbsolute

onmouseup

 

hidden

resizeBy

 
 

left

resizeTo

 
 

name

  
 

pageX

  
 

pageY

  
 

parentLayer

  
 

siblingAbove

  
 

siblingBelow

  
 

src

  
 

top

  
 

visibility

  
 

zlndex

  

layers array

length

none

none

Link

hash

none

onblur

 

host

 

onclick

 

hostname

 

ondblclick

 

href

 

onfocus

 

name

 

onhelp

 

pathname

 

onkeydown

 

port

 

onkeypress

 

protocol

 

onkeyup

 

rel

 

onmousedown

 

rev

 

onmousemove

 

search

 

onmouseout

 

target

 

onmouseover

 

text

 

onmouseup

 

x

  
 

y

  

links array

length

none

none

location

hash

assign

none

 

host

reload

 
 

hostname

replace

 
 

href

  
 

pathname

  
 

port

  
 

protocol

  
 

search

  

Math

E

abs

none

 

LN2

acos

 
 

LN10

asin

 
 

LOG2E

atan

 
 

LOG10E

atan2

 
 

PI

ceil

 
 

SQRT1_2

cos

 
 

SQRT2

exp

 
  

floor

 
  

log

 
  

max

 
  

min

 
  

pow

 
  

random

 
  

round

 
  

sin

 
  

sqrt

 
  

tan

 

MimeType

description

none

none

 

enabledPlugin

  
 

suffixes

  
 

type

  

mimeTypes array

length

none

none

navigator

appCodeName

javaEnabled

none

 

appMinorVersion

preference

 
 

appName

taintEnabled

 
 

appVersion

  
 

browserLanguage

  
 

cookieEnabled

  
 

cpuClass

  
 

language

  
 

MimeType

  
 

mimeTypes

  
 

onLine

  
 

platform

  
 

Plugin

  
 

plugins

  
 

systemLanguage

  
 

userAgent

  
 

userLanguage

 
 

userProfile

 

Number

MAX_VALUE

toExponential

none

 

MIN_VALUE

toFixed

 
 

NaN

toLocaleString

 
 

NEGATIVE_INFINITY

toPrecision

 
 

POSITIVE_INFINITY

toString

 
  

valueOf

 

Option

defaultSelected

remove

none

 

form

  
 

index

  
 

selected

  
 

text

  
 

value

  

options array

length

none

none

Password

defaultValue

blur

onblur

 

form

focus

onchange

 

maxLength

handleEvent

onclick

 

name

select

ondblclick

 

readOnly

 

onfocus

 

size

 

onhelp

 

type

 

onkeydown

 

value

 

onkeypress

   

onkeyup

   

onmousedown

   

onmousemove

   

onmouseout

   

onmouseover

   

onmouseup

   

onselect

Plugin

description

refresh

none

 

filename

  
 

length

  
 

name

  

plugins array

length

none

none

Raido

checked

blur

onblur

 

defaultChecked

click

onchange

 

form

focus

onclick

 

name

handleEvent

ondblclick

 

type

 

onfocus

 

value

 

onhelp

   

onkeydown

   

onkeypress

   

onkeyup

   

onmousedown

   

onmousemove

   

onmouseout

   

onmouseover

   

onmouseup

   

onselect

radio array

length

none

none

RegExp

input

none

none

 

lastMatch

  
 

lastParen

  
 

leftContext

  
 

multiline

  
 

rightContext

  
 

$1

  
 

$2

  
 

$3

  
 

$4

  
 

$5

  
 

$6

  
 

$7

  
 

$8

  
 

$9

  

regular expression

global

compile

none

 

ignoreCase

exec

 
 

lastindex

test

 
 

source

  

Reset

form

blur

onblur

 

name

click

onclick

 

type

focus

ondblclick

 

value

handleEvent

onfocus

   

onhelp

   

onkeydown

   

onkeypress

   

onkeyup

   

onmousedown

   

onmousemove

   

onmouseout

   

onmouseover

   

onmouseup

   

onselect

screen

availHeight

none

none

 

availLeft

  
 

availTop

  
 

availWidth

  
 

bufferDepth

  
 

colorDepth

  
 

fontSmoothingEnabled

  
 

height

  
 

pixelDepth

  
 

updatelnterval

  
 

width

  

Script

defer

none

onerror

 

event

 

onload

 

htmlFor

  
 

language

  
 

src

  
 

text

  
 

type

  

Select

form

blur

onblur

 

length

focus

onchange

 

multiple

handleEvent

onclick

 

name

 

ondblclick

 

Option

 

onfocus

 

options

 

onhelp

 

selectedIndex

 

onkeydown

 

size

 

onkeypress

 

type

 

onkeyup

 

value

 

onmousedown

   

onmousemove

   

onmouseout

   

onmouseover

   

onmouseup

   

onresize

String

lenght

anchor

none

  

big

 
  

blink

 
  

bold

 
  

charAt

 
  

charCodeAt

 
  

concat

 
  

fixed

 
  

fontcolor

 
  

fontsize

 
  

fromCharCode

 
  

indexOf

 
  

italics

 
  

lastIndexOf

 
  

link

 
  

localeCompare

 
  

match

 
  

replace

 
  

search

 
  

slice

 
  

small

 
  

split

 
  

strike

 
  

sub

 
  

substr

 
  

substring

 
  

sup

 
  

toLocaleLowerCase

 
  

toLocaleUpperCase

 
  

toLowerCase

 
  

toString

 
  

toUpperCase

 
  

valueOf

 

Style

background

none

none

 

backgroundAttachment

  
 

backgroundColor

  
 

backgroundImage

  
 

backgroundPosition

  
 

backgroundPositionX

  
 

backgroundPositionY

  
 

backgroundRepeat

  
 

border

  
 

borderBottom

  
 

borderBottomColor

  
 

borderBottomStyle

  
 

borderBottomWidth

  
 

borderColor

  
 

borderLeft

  
 

borderLeftColor

  
 

borderLeftStyle

  
 

borderLeftWidth

  
 

borderRight

  
 

borderRightColor

  
 

borderRightStyle

  
 

borderRightWidth

  
 

borderStyle

  
 

borderTop

  
 

borderTopColor

  
 

borderTopStyle

  
 

borderTopWidth

  
 

borderWidth

  
 

bottom

  
 

clear

  
 

clip

  
 

color

  
 

cssText

  
 

cursor

  
 

direction

  
 

display

  
 

font

  
 

fontFamily

  
 

fontSize

  
 

fontStyle

  
 

fontVariant

  
 

fontWeight

  
 

height

  
 

left

  
 

lineHeight

  
 

listStyle

  
 

listStyleImage

  
 

listStylePosition

  
 

listStyleType

  
 

margin

  
 

marginBottom

  
 

marginLeft

  
 

marginRight

  
 

marginTop

  
 

overflow

  
 

padding

  
 

paddingBottom

  
 

paddingLeft

  
 

paddingRight

  
 

paddingTop

  
 

pageBreakAfter

  
 

pageBreakBefore

  
 

pixelHeight

  
 

pixelLeft

  
 

pixelTop

  
 

pixelWidth

  
 

posHeight

  
 

position

  
 

posLeft

  
 

posTop

  
 

posWidth

  
 

right

  
 

styleFloat

  
 

tableLayout

  
 

textAlign

  
 

textDecoration

  
 

textDecorationBlink

  
 

textDecorationLineThrough

  
 

textDecorationNone

  
 

textDecorationOverline

  
 

textDecorationUnderline

  
 

textIndent

  
 

textTransform

  
 

top

  
 

unicodeBidi

  
 

verticalAlign

  
 

visibility

  
 

whiteSpace

  
 

width

  
 

wordSpacing

  
 

zIndex

  

StyleSheet

cssRules

addlmport

none

 

disabled

addRule

 
 

href

removeRule

 
 

id

  
 

imports

  
 

media

  
 

owningElement

  
 

parenStyleSheet

  
 

readOnly

  
 

rules

  
 

title

  
 

type

  

Submit

form

blur

onblur

 

name

click

onclick

 

type

focus

ondblclick

 

value

handleEvent

onfocus

   

onhelp

   

onkeydown

   

onkeypress

   

onkeyup

   

onmousedown

   

onmousemove

   

onmouseout

   

onmouseover

   

onmouseup

   

onselect

Text

defaultValue

blur

onblur

 

disabled

click

onchange

 

form

focus

onclick

 

maxLength

handleEvent

ondblclick

 

name

select

onfocus

 

readOnly

 

onkeydown

 

size

 

onkeypress

 

type

 

onkeyup

 

value

 

onmousedown

   

onmousemove

   

onmouseout

   

onmouseover

   

onmouseup

   

onselect

Textarea

cols

blur

onblur

 

defaultValue

click

onchange

 

form

createTextRange

onclick

 

name

focus

ondblclick

 

readOnly

handleEvent

onfocus

 

rows

select

onhelp

 

type

 

onkeydown

 

value

 

onkeypress

 

wrap

 

onkeyup

   

onmousedown

   

onmousemove

   

onmouseout

   

onmouseover

   

onmouseup

   

onscroll

   

onselect

window

clientInformation

alert

onblur

 

closed

back

onerror

 

defaultStatus

blur

onfocus

 

dialogArguments

clearInterval

onhelp

 

dialogHeight

clearTimeout

onload

 

dialogLeft

close

onmove

 

dialogTop

confirm

onresize

 

dialogWidth

focus

onscroll

 

document

forward

onunload

 

event

handleEvent

 
 

external

home

 
 

frames

moveBy

 
 

history

moveTo

 
 

innerHeight

navigate

 
 

innerWidth

open

 
 

length

print

 
 

location

prompt

 
 

locationbar

resizeBy

 
 

menubar

resizeTo

 
 

name

scroll

 
 

navigator

scrollBy

 
 

offscreenBuffering

scrollTo

 
 

opener

setInterval

 
 

outerHeight

setTimeout

 
 

outerWidth

stop

 
 

pageXOffset

  
 

pageYOffset

  
 

parent

  
 

personalbar

  
 

screen

  
 

screenLeft

  
 

screenTop

  
 

screenX

  
 

screenY

  
 

scrollbars

  
 

self

  
 

status

  
 

statusbar

  
 

toolbar

  
 

top

  



Previous Page
Next Page