Skip Navigation

Find cheat sheets for every topic, or make your own to share with your friends.

All Added Bytes cheat sheets are available free at Cheatography!

Visit Cheatography »

JavaScript Cheat Sheet

A quick reference guide for JavaScript, listing methods and functions, and including a guide to regular expressions and the XMLHttpRequest object.

The JavaScript cheat sheet is designed to act as a reminder and reference sheet, listing methods and functions of JavaScript. It includes reference material for regular expressions in JavaScript, as well as a short guide to the XMLHttpRequest object. A description of what is on the cheat sheet follows, or if you are impatient, you can go straight to the full size JavaScript cheat sheet.

Functions and Methods

Thumbnail highlighting functions and methods sections.JavaScript has a huge number of methods and functions available. The cheat sheet lists these in various sections. On the left is a list of simple methods in JavaScript. On the right are DOM methods. Functions are in their own section at the bottom of the page.


Thumbnail highlighting XMLHttpRequest area.The XMLHttpRequest object is relatively new to JavaScript. It is used to make requests and receive responses in XML format from a server, allowing developers to create interactivity with the server without the need for page refreshes (see the "Live Search" on the right of this page for an example). This section of the cheat sheet is a short reference to the object, containing a list of useful methods and properties, the syntax for creating the object in different browsers, and the various readyState values.

JavaScript in HTML

Thumbnail highlighting the JavaScript in HTML area. This section contains simple HTML, showing how to add JavaScript to an HTML document.

Regular Expressions

Thumbnail highlighting regular expressions section. JavaScript contains support for regular expressions. This section shows the format, modifiers and pattern syntax of regular expressions in JavaScript.

Event Handlers

Thumbnail highlighting event handlers list. Personally, I often forget the exact names of the various event handlers in JavaScript. This list contains all of the event handlers available in JavaScript.


So now that you know what it does, please feel free to print out the JavaScript cheat sheet:

Please note: If you wish to link to the JavaScript cheat sheet from elsewhere, please link to this page so others find the description, rather than linking directly to the sheet.

And finally, if you like the cheat sheets, and want to say thanks, please consider buying me something from my Amazon Wishlist. Thankyou very much to those who have already hunted it down and sent me something nice - I'm very grateful!

Related Cheat Sheets

No documents found.

comments powered by Disqus