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

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

Variables and Properties

Wednesday December 31, 2008
In JavaScript variables and properties are the same thing JavaScript like all other programming languages provides ways to refer to the place in the computer where the values you are processing ... Read More

Unobtrusive Memory Game

Tuesday December 30, 2008
If you use unobtrusive code to attach games to your page, those without JavaScript need not know they are there. Another variant on the concentration/memory game. This one works identically to ... Read More

Script Libraries from Google

Monday December 29, 2008
Many of the script libraries that can be used with JavaScript suffer from the problem of being huge and taking a long time to download. If you are going to use ... Read More

MultiLine Mode

Sunday December 28, 2008
regular expressions can test more than one line at the same time The eighteenth tutorial on "Regular Expressions" shows you how to process a regular expression against multiple lines of text ... Read More

Snow on the Web

Saturday December 27, 2008
The weather on the web is under your control using JavaScript Where I live it is Summer. For those of you in the northern hemisphere it is Winter and for ... Read More

Time and Distance Calculator

Friday December 26, 2008
Sometimes a simple modification to an existing calculator can make it much more useful. This JavaScript "calculator" will allow visitors to your site to obtain not only the distance between ... Read More

Fireworks

Thursday December 25, 2008
JavaScript can put a fireworks display on your page - no images required Share any celebrations with visitors to your web site with a fireworks display right on your web page.Fireworks

Passing Parameters and Returning Values

Wednesday December 24, 2008
JavaScript functions can do different things each time they are called. JavaScript functions both allow you to specify parameters that allow different values to be passed into a function as well ... Read More

Two DOMs

Tuesday December 23, 2008
HTML and XHTML cannot use the same JavaScript code. The Document Object Model that JavaScript uses to access an HTML web page is not identical to the one it needs to ... Read More

Data Typing

Monday December 22, 2008
Unlike many other languages JavaScript is loosely typed which means that it is easy to convert from one type of data to another. All data in a program has an associated ... Read More

Lookahead

Sunday December 21, 2008
JavaScript allows you to match content when that content is followed by something specific The seventeenth tutorial on "Regular Expressions" looks at how JavaScript supports the "lookahead" functionality which allows you ... Read More

Spring After the Mouse

Saturday December 20, 2008
JavaScript animations can enhance a personal web site.Here is a variation of the follow the mouse script that works a bit differently. With this JavaScript, instead of having one object ... Read More

Multiple Rollover Gallery

Friday December 19, 2008
One JavaScript effect is not always enough Adding one JavaScript image gallery to a web page is relatively easy. Adding multiple image galleries to the same web page is not much ... Read More

Scrolling Ad

Thursday December 18, 2008
Animate advertising on your page and get it noticed.Get your advertising noticed without annoying visitors too much with this scrolling ad script. Your ad scrolls backwards and forwards across the ... Read More

Functions and Methods

Wednesday December 17, 2008
In JavaScript all functions are methods The difference between a function and a method in JavaScript is mostly a matter of terminology. If you are using a procedural approach you will ... Read More

Show and Hide

Tuesday December 16, 2008
A lot more content can be fit into a small area if your page contains several tabs to select what to display when The tabbed approach to web page design is ... Read More

Scroll Position

Monday December 15, 2008
Scrollbars allow your visitor to scroll the page The question you might be asking is just how far has the page been scrolled. In this twelfth tutorial on the Browser Object ... Read More

Non-Capturing Groups

Sunday December 14, 2008
You don't have to capture groups in Regular Expressions unless you need to refer back to them There are a number of different reasons for using groups in Regular Expressions. The ... Read More

Posting Values using JavaScript

Saturday December 13, 2008
While you need a server side language to read posted values, you can use JavaScript to write them. You are probably aware that you can use either "get" or "post" when ... Read More

Efficient Coding of Loops

Friday December 12, 2008
The way you code your JavaScript can affect the speed it runs at Unlike many other programming languages, JavaScript is interpreted and not compiled. This means that each statement is interpreted ... Read More

The Purpose of Functions

Thursday December 11, 2008
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

Alternate Script Tag Location

Wednesday December 10, 2008
There is more than one way to code your script tag to be unobtrusive In the examples so far in the "Learn Modern JavaScript" series I have shown the script tag ... Read More

An IE7 bug?

Tuesday December 9, 2008
Most cross browser issues are due to the differences between the way that JavaScript and JScript work Unlike other web browsers Internet Explorer does not run JavaScript. Instead they support a ... Read More

Mouse Position

Monday December 8, 2008
Now where did that mouse go? In this eleventh tutorial on the Browser Object Model we look at the way that different browsers supply information to JavaScript on just where in ... Read More

Back References

Sunday December 7, 2008
JavaScript regular expressions can match parts of a string to one another The fifteenth tutorial on Regular Expressions introduces Back References - this is a way to refer back to a ... Read More

Cryptograms

Saturday December 6, 2008
Javascript is good at substitution codes, are you? Have you thought of adding games to non-business web sites to make things more interactive for your visitors, here is a script that ... Read More

Cross Browser Ticker/Marquee

Friday December 5, 2008
Use JavaScript to create a marquee that displays in all JavaScript enabled browsersMicrosoft provide a proprietary "marquee" tag for Internet Explorer to scroll the content across the screen. This is ... Read More

Typewriter Text

Thursday December 4, 2008
Is that a web page or a piece of paper in a typewriter? Here's an animation script that is a bit different. This one dynamically types the content of the page ... Read More

Feature Sensing

Wednesday December 3, 2008
When coding JavaScript we don't care what browser it is. Browser sensing has never been required in JavaScript because JavaScript has always provided a simple way to determine whether the currently ... Read More

Password Hashing

Tuesday December 2, 2008
Some ideas sound useful when you first look at them but turn out to be nowhere near as useful as they appear At first glance the idea of converting the password ... Read More

ViewPort Size

Monday December 1, 2008
Even where different browsers put information in different places we can still use feature sensing to retrieve it from where it is put Perhaps one of the most useful pieces of ... 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.