JavaScript Object Reference

 

JavaScript Object Reference Cheat Sheet

This is part ten of the JavaScript tutorial. If you missed the previous lessons, you may want to review them prior to viewing this JavaScript Object Reference Chart.

Now that you have a basic understanding of JavaScript, you’re now ready to start writing your own JavaScript code. Keep in mind, the more you write, the better you will become, so you must take the time to practice.

Below is a reference chart you can refer to when learning how to write your JavaScript code. This “cheat sheet” provides a great way to help you learn. Use it to your fullest advantage.

 

JavaScript Object Reference

Object

Description

Window

The window is a top level object. It pertains to a window on the computer
screen, such as a browser window that contains a document.

Document

In JavaScript, this generally pertains to an HTML document, such as a
web page.

Anchor

Commonly refers to a link or the <a> element in HTML.

Area

Refers to a specific area inside an image map.

Base

Refers to the <base> element in HTML.

Body

Refers to the <body> element in HTML.

Button

Refers to a <button> element in HTML.

Event

Refers to the state of an event.

Form

Refers to the <form> element in HTML.

Frame

Refers to the <frame> element in HTML.

Frameset

Refers to the <frameset> element in HTML.

Iframe

Refers to the <iframe> element in HTML.

Image

Refers to the <img> element in HTML.

Input button

Refers to an HTML form button.

Input Checkbox

Refers to an HTML form checkbox.

Input File

Refers to file upload within an HTML form.

Input Hidden

Refers to a hidden field within an HTML form.

Input Password

Refers to a password field within an HTML form.

Input Radio

Refers to a radio button within an HTML form.

Input Reset

Refers to a reset button within an HTML form.

Input Submit

Refers to a submit button within an HTML form.

Input Text

Refers to a text input field within an HTML form.

Link

Refers to the <link> element in HTML.

Meta

Refers to the <meta> element in HTML.

Option

Refers to an <option> element in HTML.

Select

Refers to a selection list in a form in HTML.

Style

Refers to a style statement.

Table

Refers to a <table> element in HTML.

TableData

Refers to a <td> element in HTML.

TableRow

Refers to a <tr> element in HTML.

Textarea

Refers to a <textarea> element in HTML.

 

Using a JavaScript code cheat sheet for your objects will assist you in quickly locating and using the JavaScript codes you need.

 
This concludes the JavaScript Object Reference Chart. In the next section, you will find a JavaScript Events Reference Chart.