his is a table of the most commonly used JavaScript objects, with all of their properties, methods, and event handlers.
For additional information on JavaScript:
- Visit WebReference’s Core Javascript Reference, which has a complete listing of these objects and other information on the JavaScript spec.
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 blur close confirm focus open prompt clearTimeout setTimeout | none (The onLoad and onUnload event handlers belong to the Window object) |
Location | hash host hostname href pathname por protocol search | reload replace | none |
History | length forward go | back | none |
Navigator | appCodeName appName appVersion mimeTypes plugins userAgent | javaEnabled | none |
document | alinkColor anchors applets area bgColor cookie fgColor forms images lastModified linkColor links location referrer title vlinkColor | clear close open write writeln | none (the onLoad and onUnload event handlers belong to the Window object. |
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 |