1. Home
  2. Computing & Technology
  3. JavaScript
photo of Stephen Chapman
Stephen's JavaScript Blog January 2009 Archive

By Stephen Chapman, About.com Guide to JavaScript since 2004

Metric Calculator

Saturday January 31, 2009
JavaScript is good at doing calculations and conversions. Enable those who are yet to convert to metric (or those who already have if you haven't) to figure out what the measurements ... Read More

Cooking Calculator

Friday January 30, 2009
There are many different conversions that can be done using JavaScript This script adds a cooking calculator to your page that handles most of the common and some not so common ... Read More

Body Fat Calculator

Thursday January 29, 2009
JavaScript calculators can perform whatever calculations you like as long as you know the appropriate fomulae. Here's a JavaScript calculator for those with health and diet web sites. Given a couple ... Read More

Loops

Wednesday January 28, 2009
Different objects need different sorts of loops The easiest way to process objects, arrays, and nodelists is by using a loop to step through all the entries. How you do this ... Read More

JavaScript Links

Tuesday January 27, 2009
You need to provide your visitors with some way to run your JavaScript. Often the JavaScript that you have in your page that you want to have run on visitor request ... Read More

Day Difference and Business Day Difference

Monday January 26, 2009
How many days are there between two dates? JavaScript can work it out for you easily. The number of days between two dates can be easily worked out in JavaScript by ... Read More

RegExp Methods

Sunday January 25, 2009
Objects have both Properties and Methods In the last couple of tutorials on Regular Expressions we looked at all of the different properties that these objects have in JavaScript. The twenty ... Read More

Asking for Help

Saturday January 24, 2009
You can't solve every JavaScript problem yourself. Everyone will at least occasionally strike problems with JavaScript code that they can't solve themselves. Fortunately there are plenty of people out there who ... Read More

Naming DOM Created Fields and Internet Explorer

Friday January 23, 2009
Internet Explorer runs JScript rather than JavaScript. Most JavaScript is also valid as JScript but Internet Explorer does have a few quirks. Internet Explorer does a reasonably good job of following ... Read More

Common JavaScript Errors

Thursday January 22, 2009
Not even the experts get their JavaScript right first time every time. Everyone makes mistakes, particularly when writing a new program. What you have to do with your program is to ... Read More

NodeLists

Wednesday January 21, 2009
When you use getElemensByTagName or getElementsByName JavaScript receives a nodelist While the nodelist that some DOM calls return to JavaScript looks a little like an array there are some important differences ... Read More

ActiveX

Tuesday January 20, 2009
ActiveX is not a part of JavaScript A lot of people start with code that works on Internet Explorer which they can't get to work on other browsers. Often the cause ... Read More

Running JavaScript as JScript

Monday January 19, 2009
JavaScript and JScript are two separate languages that share a lot of common commands. Since Internet Explorer runs JScript (and vbScript) rather than JavaScript it would be impossible to write scripts ... Read More

More Properties of RegExp

Sunday January 18, 2009
There are many properties you will probably never use with regular expressions The twenty first tutorial on Regular Expressions looks at those properties of Regular Expressions that are not often used. ... Read More

Noughts and Crosses

Saturday January 17, 2009
Whether you call it Noughts and Crosses or Tic-Tac-Toe, this JavaScript will be hard to beat Another unobtrusive JavaScript for you, this one a simple children's game. Your visitor goes first ... Read More

Follow the Mouse

Friday January 16, 2009
There is more than one way of animating things with JavaScript. One way to animate something using JavaScript is to attach it to the mouse so that it follows the mouse ... Read More

Fly in Ad

Thursday January 15, 2009
Internet marketers are always looking for animation JavaScripts like this one Are you looking for a way to add advertising to your web page that will get your visitor's attention? With ... Read More

Arrays

Wednesday January 14, 2009
You don't need to define separate fields for similar items in JavaScript, you can make them an array instead. Arrays are the most commonly used of the types of object built ... Read More

Related Image Match Game

Tuesday January 13, 2009
A somewhat different memory game where the images to be matched are different The basic memory game where you match identical images to one another tests your memory but doesn't really ... Read More

Encoding Web Addresses

Monday January 12, 2009
Some characters have special meanings There are a number of characters that have special meanings when they appear in web addresses. Those characters may also be needed as a part of ... Read More

Properties of RegExp

Sunday January 11, 2009
Regular Expressions capture a lot of information about your text in a number of properties When you process a Regular Expression it can not only update the text string that you ... Read More

Back Button or Link

Saturday January 10, 2009
JavaScript can emulate some of the functionality provided by the browser toolbars and menu. Using a little JavaScript you can add a back button or link within your web page that ... Read More

JavaScript Resources

Friday January 9, 2009
Scripts that require massive resources will only run in some browsers Some animation JavaScripts involve the movement of dozens or even hundreds of objects around the page. The different browsers can ... Read More

The Purpose of Functions

Thursday January 8, 2009
You can use functions in JavaScript When you first start writing programs in any language there is a lot of terminology and functionality that may not be all that obvious to ... Read More

Objects

Wednesday January 7, 2009
Objects are central to modern JavaScript In earlier tutorials in the ""Learn Modern JavaScript" series I have mentioned objects on a number of occasions. In this eleventh tutorial we look at ... Read More

My Script Doesn't Work

Tuesday January 6, 2009
There are some simple steps to follow if your JavaScript doesn't work. There are a number of different reasons why a script might not work and so the first thing you ... Read More

Unobtrusive Concentration Memory Game With Images

Monday January 5, 2009
Unobtrusive JavaScripts can do everything that older more obtrusive JavaScripts can. This rewrite of the version of my memory game using images makes the script as unobtrusive as it can be. ... Read More

The RegExp Object

Sunday January 4, 2009
There is more than one way to define a regular expression in JavaScript Regular expressions are actually instances of RegExp objects at the nineteenth tutorial in the Regular Expressions series explains. The ... Read More

Unobtrusive Seasonal Background

Saturday January 3, 2009
Separating your JavaScript completely from the HTML is relatively simple. Adding JavaScript to your web page in an unobtrusive way means placing all the JavaScript in a separate file. This version ... Read More

Countdown Timer

Friday January 2, 2009
Tell your visitors how long to a specific date and time using JavaScript Display a countdown on your web page. This one is slightly different from the usual JavaScript countdown because ... Read More

Month and Day Names

Thursday January 1, 2009
JavaScript doesn't supply all the date methods we are likely to need but we can easily add the missing ones ourselves When you are displaying a date, the day of the ... Read More
Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.