JavaScript Object Reference
An object is a construct such as a document, frame, or text field that manages its own properties and provides functions known as methods that can be used to control the object or its data. JavaScript supports a wide range of objects including built-in, browser-based, and user-defined objects. An object's properties are the attributes of the object and contain stored values that represent some quality of the object (such as the object's name). Object properties are referenced using the following syntax: objectname.property An object's methods can be executed in a similar manner using the following syntax: objectname.method(p1, p2,...pn) The following table lists objects and the properties and methods associated with them. Objects -Their Properties and Methods Object Anchor Properties name text x y area hash host hostname href pathname port protocol search target array constructor index input length prototype concat() join() pop() push() reverse() shift() slice() splice sort Methods
toSource toString unshift valueOf Boolean constructor prototype button form name type value checkbox checked defaultChecked form name type value date constructor prototype getDate getDay getFullYear getHours getMilliseconds getMinutes getMohth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMillisseconds getUTCMinutes getUTCMonth getUTCSeconds getYear parse toSource toString valueOf blur click focus handleEvent blur click focus handleEvent
setDate setFullYear setHours setMilliseconds setMinutes setMohth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMillisseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toGMTString toLocalString toSource toString toUTCString UTC ValueOf document alinkColor anchors applets byColor classes cookie domain embeds fgColor formName forms height ids images captureEvents close contextual getSelection handleEvent open releaseEvents routeEvent write writeln
lastModified layers linkColor links plugins referrer tags title URL vlinkColor width event data height layerX layerY modifiers pageX pageY screenX screenY target type which width X Y fileUpload form name type value form action elements encoding length method name target blur focus handleEvent select handleEvent reset submit
function
arguments arguments.callee arguments.caller arguments.length arity constructor length prototype
apply call toSource toString valueOf
hidden
form name type value
history
current length next previous
back forward go handleEvent
image
border complete height hspace lowsrc name src vspace width
layer
above background bgColor below clip.bottom clip.height clip.left clip.right clip.top clip.width document left
captureEvents handleEvent load moveAbove moveBelow moveBy moveTo moveToAbsolute releaseEvents resizeBy resizeTo routeEvent
name pageX pageY parentLayer siblingAbove siblingBelow src top visibility window x y zIndex link hash host hostname href pathname port protocol search target text x y location hash host hostname href pathname port protocol search math E LN10 LN2 LOG10E abs acos asin atan reload replace handleEvent
LOG2E PI SQRT1_2 SQRT2
ceil cos exp floor Log Max Min Pow Random Round Sin Sqrt Tan
mimeType
description enabledPlugin suffixes type
navigator
appCodeName appName appVersion language mimeTypes platform plugins userAgent
javaEnabled plugins.refresh preference savePreferences taintEnabled
number
constructor MAX_VALUE MIN_VALUE NaN NEGATIVE_INFINITY POSITIVE_INFINITY prototype
toSource toString valueOf
object
constructor prototype
eval toSource toString unwatch valueOf
watch option defaultSelected index length selected text value password defaultValue form name type value plugin description filename length name radio checked defaultChecked form name type value regExp $1...$9 $_ $* $& $+ $' $' constructor global ignoreCase input lastIndex lastMatch lastParen leftContext compile exec test toSource toString valueOf blur click focus handleEvent blur focus handleEvent select
multline prototype rightContext source reset form name type value screen availHeight availLeft availTop availWidth colorDepth height pixelDepth width select form length name options selectedIndex type string constructor length prototype anchor big blink bold charAt charCodeAt concat fixed fontcolor fontsize fromCharCode indexOf italics lastIndexOf link match blur focus handleEvent blur click focus handleEvent
replace search slice small split strike sub substr substring sup toLowerCase toSource toString toUpperCase valueOf style align backgroundColor backgroundImage borderBottomWidth borderColor borderLeftWidth borderRightWidth borderStyle borderTopWidth clear color display fontFamily fontSize fontStyle fontWeight lineHeight listStyleType marginBottom marginLeft marginRight marginTop borderWidths margins paddings
paddingBottom paddingLeft PaddingRight paddingTop textAlign textDecoration textIndent textTransform whiteSpace width submit form name type value text defaultValue form name type value textarea defaultValue form name type value window closed crypto defaultStatus document frames history innerHeight innerWidth length location locationbar menubar name alert atob back blur btoa captureEvents clearInterval clearTimeout close confirm crypto.random crypto.signText disableExternalCapture blur focus handleEvent select blur click focus handleEvent blur focus
offscreenBuffering opener outerHeight outerWidth pageXOffset pageYOffset parent personalbar screenX screenY scrollbars self status statusbar toolbar top window
find focus forward handleEvent home moveBy moveTo open print prompt releaseEvents resizeBy resizeTo routeEvent scroll scrollBy scrollTo setHotKeys setInterval setResizable setTimeout setZOptions stop