JavaScript Reference


picture

This section contains a complete reference of all the built-in JavaScript objects, along with their methods and properties.

This section also contains an event reference and a reference of the top-level properties and functions that can be used on all of the built-in JavaScript objects.

A reference to all of the HTML DOM objects are listed in the menu to the left.



JavaScript String Object

The String object is used to manipulate a stored piece of text.

For a complete reference of the properties and methods that can be used with the String object, go to our String object reference.

The reference contains a brief description and examples of use for each property and method!


JavaScript Date Object

The JavaScript Date object is used to work with dates and times. 

For a complete reference of the properties and methods that can be used with the Date object, go to our Date object reference.

The reference contains a brief description and examples of use for each property and method!


JavaScript Array Object

The JavaScript Array object is used to store a set of values in a single variable name. 

For a complete reference of the properties and methods that can be used with the Array object, go to our Array object reference.

The reference contains a brief description and examples of use for each property and method!


JavaScript Boolean Object

The JavaScript Boolean object is an object wrapper for a Boolean value. 

For a complete reference of the properties and methods that can be used with the Boolean object, go to our Boolean object reference.

The reference contains a brief description and examples of use for each property and method!


JavaScript Math Object

The JavaScript Math object allows you to perform common mathematical tasks. It includes several mathematical constants and functions.

For a complete reference of the properties and methods that can be used with the Math object, go to our Math object reference.

The reference contains a brief description and examples of use for each property and method!


JavaScript Number Object

The JavaScript Number object does not allow you to set specific number types (like integer, short, long or double). In JavaScript all numbers are 64bit floating point numbers and have a number range from 5e-324 (negative) to 1.7976931348623157e+308 (positive).

For a complete reference of the properties and methods that can be used with the Number object, go to our Number object reference.

The reference contains a brief description and examples of use for each property and method!


JavaScript Top-level Properties and Functions

The top-level properties and functions that can be used on all of the built-in JavaScript objects.

For a complete reference of the properties and functions that can be used with all the JavaScript objects, go to our Top-level reference.

The reference contains a brief description and examples of use for each property and function!


JavaScript Events

New to HTML 4.0 was the ability to let HTML events trigger actions in the browser, like starting a JavaScript when a user clicks on an HTML element.

For a complete reference of all the event attributes, go to our Event reference.

The reference contains a brief description and examples of use for each event!


HTML DOM Objects

In addition to the built-in JavaScript objects, you can also access and manipulate all of the HTML DOM objects with JavaScript.

The HTML DOM defines a standard set of objects for HTML, and a standard way to access and manipulate HTML documents.

For a complete reference of all the DOM objects, go to our DOM reference.


HTML DOM Reference

JavaScript Objects

Follow the links to learn more about the objects and their collections, properties, methods and events. Contain lots of examples!

Object Description
Window The top level object in the JavaScript hierarchy. The Window object represents a browser window. A Window object is created automatically with every instance of a <body> or <frameset> tag
Navigator Contains information about the client's browser
Screen Contains information about the client's display screen
History Contains the visited URLs in the browser window
Location Contains information about the current URL

HTML DOM Objects

Follow the links to learn more about the objects and their collections, properties, methods and events. Contain lots of examples!

Object Description
Document Represents the entire HTML document and can be used to access all elements in a page
Anchor Represents an <a> element
Area Represents an <area> element inside an image-map
Base Represents a <base> element
Body Represents the <body> element
Button Represents a <button> element
Event Represents the state of an event
Form Represents a <form> element
Frame Represents a <frame> element
Frameset Represents a <frameset> element
Iframe Represents an <iframe> element
Image Represents an <img> element
Input button Represents a button in an HTML form
Input checkbox Represents a checkbox in an HTML form
Input file Represents a fileupload in an HTML form
Input hidden Represents a hidden field in an HTML form
Input password Represents a password field in an HTML form
Input radio Represents a radio button in an HTML form
Input reset Represents a reset button in an HTML form
Input submit Represents a submit button in an HTML form
Input text Represents a text-input field in an HTML form
Link Represents a <link> element
Meta Represents a <meta> element
Option Represents an <option> element
Select Represents a selection list in an HTML form
Style Represents an individual style statement
Table Represents a <table> element
TableData Represents a <td> element
TableRow Represents a <tr> element
Textarea Represents a <textarea> element