Overview
A
abs()
acos()
action
alert()
alinkColor
anchor()
anchors
appCodeName
applet
applets
appName
appVersion
area
areas
arguments
Array
asin()
atan()
atan2()
B
back()
bgColor
big()
blink()
blur()
bold()
Boolean
border
break
button
C
caller
ceil()
charAt()
charCodeAt()
checkbox
checked
clearTimeout()
click
close
closed
complete
concat() (Array)
concat() (String)
confirm()
constructor
continue
cookie
cos()
D
Date
defaultChecked
defaultSelected
defaultStatus
delete
do...while
document
domain
E
E
elements
embeds
escape()
eval()
event
exp()
F
fgColor
fixed()
floor()
focus()
fontColor()
fontSize()
for () {...}
for (var v in o) {...}
form
forms
forward
frame
fromCharCode()
Function
function
G
getDate()
getDay()
getHours()
getMinutes()
getMonth()
getSeconds()
getTime()
getTimezoneOffset()
getYear()
go()
H
hash
height
hidden
history
host
hostname
href
hspace
I
if () {...} else {...}
image
images
IMG
indexOf()
isNaN()
italics()
J
javaEnabled
join()
K
L
labeled
language
lastIndexOf()
lastModified
length (Array)
length (String)
link
link()
linkColor
links
LN10
LN2
location
location
log
LOG10E
LOG2E
lowsrc
M
match
Math
max()
MAX_VALUE
method
min()
MIN_VALUE
N
name
NaN
navigator
NEGATIVE_INFINITY
new
Number
O
Object
onAbort
onBlur
onChange
onClick
onDblClick
onError
onFocus
onKeyDown
onKeyPress
onKeyUp
onLoad
onMouseDown
onMouseMove
onMouseOut
onMouseOver
onMouseUp
onSelect
onSubmit
onUnload
open()
opener
options
P
parent
parse()
parseFloat()
parseInt()
password
pathname
PI
plugins
port
POSITIVE_INFINITY
pow()
prompt()
protocol
prototype
Q
R
radio
random
referrer
RegExp
reload()
replace()
replace()
reset
reset()
return
returnValue
reverse()
round()
S
screen
scroll()
search
search()
select
selectedIndex
self
setDate()
setHours()
setMinutes()
setMonth()
setSeconds()
setTime()
setTimeout()
setYear()
sin()
slice() (Array)
slice() (String)
small()
sort()
split()
sqrt()
SQRT1_2
SQRT2
src
status
strike()
String
sub()
submit
submit()
substr()
substring()
sup()
switch () {...}
T
tan()
target
text
text
textarea
this
toGMTString()
toLocaleString()
toLowerCase()
top
toString()
toUpperCase()
typeof
U
unescape()
url
userAgent
V
value
valueOf()
var
vLinkColor
void
vspace
W
while () {...}
width
window
with () {...}
write()
writeln()
X
Y
Z
This is an alphabetical reference of JavaScript methods and properties that are common to both Internet Explorer 4.0 and Netscape Navigator 4.0. However, their uses and/or implementations may differ. For details, consult the relevant documentation at the Microsoft or the Netscape site. For another, regularly updated reference, visit Coolnerds Mega Xrefs (this reference is based on the JavaScript Object Model Xref from the Coolnerds site).
JavaScript Method
Absolute value of a number.
JavaScript Method
Arc-cosine of a number.
DOM Property
Action attribute of a form.
DOM Method
Display an alert message box with the string message.
DOM Property
Active hyperlink color.
JavaScript Method
Create an anchor. This is a named target in HTML, sort of like a bookmark into a page.
DOM Collection
Array of all anchors in the document.
DOM Property
The browser's code name.
DHTML Object
Java applet object.
DOM Collection
Array of all applets in the document.
DOM Property
The browser's name (internal name of the browser application).
DOM Property
The browser's version.
DHTML Object
Object for the AREA (hotspot) tag of an image map.
DOM Collection
Array of areas in an image map.
JavaScript Property
Array of the arguments passed to the parent object.
JavaScript Object
Array class, for collections of objects or variables of the same class or type.
JavaScript Method
Arc-sine of a number.
JavaScript Method
Arc-tangent of a number in degrees.
JavaScript Method
Arc-tangent of a number in radians.
DOM Method
Go one page back in the browser's history list.
DOM Property
Background colour.
JavaScript Method
Inserts <BIG> tags.
JavaScript Method
Inserts <BLINK> tags.
DOM Method
Deselects the current object (usually a form control).
JavaScript Method
Inserts <B> tags.
JavaScript Object
Boolean class. Objects of this class may be either True or False.
DOM Property
Border thickness.
JavaScript Statement
Moves program control to the next executable point after the end of the current block -- ie. terminates a loop or leaves an if statement, etc.
DHTML Object
Form button object.
JavaScript Property
Name of the calling function.
JavaScript Method
Ceiling of n. This is the next integer greater than or equal to the number.
JavaScript Method
The character at position pos in a String.
JavaScript Method
The unicode encoding of the character at position pos in a String. Unicode is a String representation code that replaces non-ASCII characters with hexadecimal codes.
DHTML Object
Form checkbox object.
DOM Property
True if the checkbox or radio button object is checked.
DOM Method
Clears a timer created by setTimeout().
DOM Method
Simulates a mouse click.
DOM Method
Closes the document output stream.
DOM Property
True if a window is closed.
DOM Property
True after the object has loaded.
JavaScript Method
Concatenates (joins) two arrays.
JavaScript Method
Concatenates (joins) two strings.
DOM Method
Displays a confirmation dialog box with message.
JavaScript Property
Reference to the function that creates an object of the same class.
JavaScript Statement
Returns program control to the beginning of a loop.
DOM Property
Used to access a cookie. A cookie is a small amount of information stored on your computer that is used by a web page to determine its content.
JavaScript Method
Cosine of an angle.
JavaScript Object
Date class. Objects of this class hold information about a date.
DOM Property
True if a check box is checked by default.
DOM Property
Index of the default selected option in a form select control.
DOM Property
Default status bar message.
JavaScript Operator
Remove an element from an array or a property from an object.
JavaScript Statement
Repeatedly executes the statements inside {...} for as long as condition is True.
DHTML Object
Object representing the entire HTML document.
DOM Property
Security domain of the document.
JavaScript Constant
Base of natural logarithms.
DOM Collection
Array of all the elements (controls) in a form.
DOM Collection
Array of all embedded elements.
JavaScript Method
Returns the unicode representation of string. Unicode is a String representation code that replaces non-ASCII characters with hexadecimal codes.
JavaScript Method
Evaluates and executes string.
DHTML Object
Event object.
JavaScript Method
Returns n to the power of E.
DOM Property
Text colour.
JavaScript Method
Makes text fixed-width -- ie. it places <TT> tags around the text.
JavaScript Method
Floor of n. This is the next integer less than or equal to the number.
DOM Method
Selects the current object (usually a form control). This usually means placing the cursor in the control if the control is of type text.
JavaScript Method
Inserts <FONT COLOR="color"> tags around text.
JavaScript Method
Inserts <FONT SIZE="size"> tags around text.
JavaScript Statement
Executes initialisation, then repeatedly executes the statements in {...} then increment so long as condition is True.
JavaScript Statement
Repeatedly executes the statements in {...} for each property of object. During each iteration, variable holds the name of the property.
DOM Property
Name of the form that the form control is an element of.
DHTML Object
Form object.
DOM Collection
Array of all forms in the document.
DOM Method
Go one page forward in the browser's history list.
DHTML Object
Frame object.
JavaScript Method
Returns the normal representation of the unicode string. Unicode is a String representation code that replaces non-ASCII characters with hexadecimal codes.
JavaScript Object
Function class. Objects of this class are considered to be functions.
JavaScript Statement
Declares a user-defined function.
JavaScript Method
Returns the day of the month of a Date object.
JavaScript Method
Returns the day of the week of a Date object.
JavaScript Method
Returns the hour of a Date object.
JavaScript Method
Returns the minute of a Date object.
JavaScript Method
Returns the month of a Date object.
JavaScript Method
Returns the second of a Date object.
JavaScript Method
Converts a date object to a time in milliseconds.
JavaScript Method
Returns the offset from UTC (Universal Coordinated Time) of a Date object.
JavaScript Method
Returns the two-digit year of a Date object.
DOM Method
Go to a particular item in the browser's history list.
DOM Property
Hash portion of a URL.
DOM Property
Height of an element.
DHTML Object
Form hidden control object.
DHTML Object
History list object.
DOM Property
Host and port of a URL.
DOM Property
Hostname of a URL.
DOM Property
Document's URL.
DOM Property
Element's horizontal margin.
JavaScript Statement
Executes the statements in {...} if condition is True, otherwise it executes the statements in {---}.
DHTML Object
Form image submit button control.
DOM Collection
Array of all images.
DHTML Object
Bitmap image object.
JavaScript Method
Returns the position of substring in a String.
DHTML Object
Returns True if the element is Not a Number.
JavaScript Method
Inserts <I> tags around text.
DOM Property
True if the browser is Java enabled.
JavaScript Method
Converts all of the elements of an Array to one joined String.
JavaScript Statement
Statement identifier.
DOM Property
Script language of the currently executing script.
JavaScript Method
Returns the position of the last occurence of substring in a String.
DOM Property
Date and time of last modification of the document.
JavaScript Property
Number of elements in an Array.
JavaScript Property
Number of characters in a String.
DHTML Object
Link object.
JavaScript Method
Insert <A HREF="URL"> tags around text.
DOM Property
Unvisited hyperlink colour.
DOM Collection
Array of all links.
JavaScript Constant
Natual logarithm of 10.
JavaScript Constant
Natual logarithm of 2.
DHTML Object
Current URL object.
DOM Property
URL of the current page.
JavaScript Method
Natural logarithm of a number.
JavaScript Constant
Base-10 logarithm of E.
JavaScript Constant
Base-2 logarithm of E.
DOM Property
Low-resolution rsource of an image.
JavaScript Method
Performs a search on a String.
JavaScript Object
Object containing elements related to mathematical functionality.
JavaScript Method
Returns the largest of two values.
JavaScript Constant
Largest number acceptable in JavaScript.
DOM Property
Data transfer method of a form -- either "get" or "put".
JavaScript Method
Returns the smallest of two values.
JavaScript Constant
Smallest acceptable number in JavaScript. Approximately 2.22E-308.
DOM Property
Name of the element.
JavScript Property
True if element is Not a Number.
DHTML Object
Object representing the browser.
JavaScript Constant
Value smaller than MIN_VALUE.
JavaScript Operator
Creates a new object.
JavaScript Object
Number class. Objects of this class are numbers.
JavaScript Object
Object class. All objects inherit from this class. It can also be used to convert a fundamental type to an object.
DOM Event
Triggered when an image download aborts.
DOM Event
Triggered when a form control loses focus (is deselected).
DOM Event
Triggered when a form control is changed and deselected.
DOM Event
Triggered when an element is clicked with the mouse.
DOM Event
Triggered when an element is double-clicked with the mouse.
DOM Event
Triggered when an error occurs.
DOM Event
Triggered when a form control gets focus (is selected).
DOM Event
Triggered when the user depresses a key.
DOM Event
Triggered when the user depresses and releases a key.
DOM Event
Triggered when the user releases a key.
DOM Event
Triggered when the page has finished loading all elements.
DOM Event
Triggered when the user presses the mouse button.
DOM Event
Triggered when the user moves the mouse cursor within the element.
DOM Event
Triggered when the user moves the mouse cursor out of the element.
DOM Event
Triggered when the user moves the mouse cursor in to the element.
DOM Event
Triggered when the user releases the mouse button.
DOM Event
Triggered when an element is selected.
DOM Event
Triggered when a form submit button is clicked.
DOM Event
Triggered when the user leaves the current page.
DOM Method
Opens a new browser window or a text stream.
DOM Property
Name of the calling browser window.
DOM Collection
Array of options in a form select control.
DOM Property
Parent of an object. This is the object one level up in the object hierarchy.
JavaScript Method
Number of milliseconds since the date 01-Jan-70.
JavaScript Method
Converts a String representation of a floating-point number to its floating-point value.
JavaScript Method
Converts a String representation of an integer to its integer value.
DHTML Object
Form password control object.
DOM Property
Pathname portion of the document's URL.
JavaScript Constant
PI -- approximately 3.14159.
DOM Collection
Array of all embedded plug-ins.
DHTML Object
Port portion of the document's URL.
JavaScript Constant
Number larger than the largest number in JavaScript.
JavaScript Method
Returns a number to the power of n.
DOM Method
Displays a prompt dialog box with message.
DOM Property
Protocol portion of the document's URL.
JavaScript Property
Prototype of a class of objects.
DHTML Object
Form radio button control object.
JavaScript Method
Returns a random floating-point number between 0 and 1.
DOM Property
URL of the previous location in the browsers history list.
JavaScript Object
Object used to store information on pattern searches.
DOM Method
Reloads the current page.
JavaScript Method
Replaces text within a string.
DOM Method
Replaces the document and history session.
DHTML Object
Form reset button object.
DOM Method
Resets all controls on a form to their initial (default) values.
JavaScript Statement
Returns (outputs) a value from a function.
DOM Property
Return valie for an event or a dialog box.
JavaScript Method
Reverses the order of elements in an Array.
JavaScript Method
Rounds a number off to the nearest integer.
DHTML Object
Screen object.
DOM Method
Scrolls the window to position (x, y).
DOM Property
Search portion of the document's URL.
JavaScript Method
Searches through a String.
DHTML Object
Form select box object.
DOM Property
Index of the currently selected value in a form select box.
DOM Property
Current window object.
JavaScript Method
Sets a Date object to newDate.
JavaScript Method
Sets the hours of a Date object.
JavaScript Method
Sets the minutes of a Date object.
JavaScript Method
Sets the month of a Date object.
JavaScript Method
Sets the seconds of a Date object.
JavaScript Method
Converts a Date object to a time in milliseconds.
DOM Method
Waits for time milliseconds, then executes statement and returns a timer.
JavaScript Method
Sets the two-digit year of a Date object.
JavaScript Method
Sine of an angle.
JavaScript Method
Returns a subsection of an Array.
JavaScript Method
Returns a subsection of a String.
JavaScript Method
Inserts <SMALL> tags around text.
JavaScript Method
Sorts the elements of an Array into order.
JavaScript Method
Converts a String to an Array of characters.
JavaScript Method
Square root of a number.
JavaScript Constant
Square root of 1/2 (one half).
JavaScript Constant
Square root of 2.
DOM Property
URL of the source of an image or multimedia element.
DOM Property
Status bar message.
JavaScript Method
Inserts <STRIKE> tags around text.
JavaScript Object
String class. Objects of this class are Strings.
JavaScript Method
Inserts <SUB> (sub-script) tags around text.
DHTML Object
Form submit button object.
DOM Method
Submits a form.
JavaScript Method
Returns a sub-string of a String.
JavaScript Method
Returns a sub-string of a String.
JavaScript Method
Inserts <SUP> (super-script) tags around text.
JavaScript Statement
If value is equal to a, or b (etc), the statements for that case {...} are executed.
JavaScript Method
Tangent of an angle.
DOM Property
Target of a document or frame.
DHTML Object
Form text input object.
DOM Property
Displayed text in an option of a form select box, or the text colour.
DHTML Object
Form multi-line text input object.
JavaScript Statement
Reference to the current object.
JavaScript Method
Converts a Date object to Greenwich Meridian Time.
JavaScript Method
Converts a Date object to the local time format.
JavaScript Method
Converts a String to lowercase.
DOM Property
Target for the top of a window.
JavaScript Method
Converts an object to a String.
JavaScript Method
Converts a String to uppercase.
JavaScript Operator
Data type of an expression.
JavaScript Method
Returns the normal representation of the unicode string. Unicode is a String representation code that replaces non-ASCII characters with hexadecimal codes.
DOM Property
URL of the document.
DOM Property
Client browser.
DOM Property
Contents of a form control.
JavaScript Method
Primitive value of an object.
JavaScript Statement
Declares a new variable.
DOM Property
Colour of visited links.
JavaScript Operator
An undefined type.
DOM Property
Size of vertical margins.
JavaScript Statement
Repeatedly executes {...} so long as condition is True.
DOM Property
Width of an element.
DHTML Object
Browser window object.
JavaScript Statement
Executes {...} for object. This means you don't have to fully reference the object for every property or method of that object.
DOM Method
Inserts text into the document.
DOM Method
Inserts text into the document, followed by a newline character.