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

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

Grouping

Sunday November 30, 2008
Regular Expressions can match groups of characters. Up until now we have looked at regular expressions involving single characters and repetitions of single characters. The fourteenth tutorial on regular expressions introduces ... Read More

Personality Quiz Maker

Saturday November 29, 2008
Help your visitors categorise themselves with a JavaScript personality quiz This personality quiz allows you to create personality quiz questions with up to eight answers each. You can then display the ... Read More

Multiple Choice Quiz Maker

Friday November 28, 2008
By using the DOM we can make our JavaScripts completely independent from the HTML This multiple choice quiz allows you to create multiple choice quiz questions with up to six answers ... Read More

Unobtrusive Hangman Game

Thursday November 27, 2008
Moving all your JavaScript out of the page means that you don't display broken content to your visitors One problem with adding a JavaScript Hangman game to your web page is ... Read More

Testing Conditions

Wednesday November 26, 2008
JavaScript makes decisions using IF and SWITCH Decision making is one aspect of JavaScript that hasn't changed much with the move to more unobtrusive processing, at least not in so far ... Read More

Date Format Method

Tuesday November 25, 2008
JavaScript provide the basic methods for extracting the parts of a date and time. Unlike other languages JavaScript does not provide a nice simple way of converting dates into the nice ... Read More

navigator

Monday November 24, 2008
Even the least standard parts of the BOM can occasionally supply useful information. In this ninth tutorial on the Browser object Model we look at the navigator object. While most of ... Read More

Boundaries

Sunday November 23, 2008
Regular Expressions can identify word boundaries Words don't necessarily start and end with a space, they could be at the beginning or end of the whole text or the beginning or ... Read More

All My Scripts

Saturday November 22, 2008
How many JavaScripts can one person write? I have now added so many scripts to this site that even I have started to have trouble keeping track of all of what ... Read More

Alternative Ways to Define Functions

Friday November 21, 2008
JavaScript gives you three different ways to define a function. There is more than one way to define a function in JavaScript - in fact there are three. Each works slightly ... Read More

Accessibility

Thursday November 20, 2008
Coding your JavaScript the right way can enhance your visitor's experience of your site. Not all of the people visiting your site will have JavaScript enabled. If you code your web ... Read More

Timed Events

Wednesday November 19, 2008
You delay processing in JavaScript by triggering it after a specified time. Not all of the events your page handles need to be triggered by your visitors actions. You can set ... Read More

Getting Rid of Noscript

Tuesday November 18, 2008
Some people think using noscript makes a page more accessible, the reverse is true. Anonymous responses that I received regarding prior articles on getting rid of the noscript tag demonstrate that ... Read More

The Screen

Monday November 17, 2008
A lot of people seem concerned about screen resolution when it comes to planning their page layout. The browser viewport is where your web page displays and that is not the ... Read More

ASCII and Unicode

Sunday November 16, 2008
JavaScript Regular Expressions can test any character at all. The twelfth tutorial on Regular Expressions shows you how to include any character at all in your JavaScript Regular Expression by specifying ... Read More

Calendar

Saturday November 15, 2008
Old JavaScripts never die, they just get rewritten to work better I originally wrote my calendar script back in 2000 and have revisited it several times since then to rework the ... Read More

Time of Day

Friday November 14, 2008
JavaScript can change the appearance of a web page based on the time of day at your visitor's location. People are more likely to return to a web page if it ... Read More

Day of Week Image

Thursday November 13, 2008
JavaScript can do different things for different days of the week If someone who visits your site today returns tomorrow will your site look different? It will if you use this ... Read More

Visitor Triggered Events

Wednesday November 12, 2008
Most of the events your JavaScript needs to handle will be a result of an action on the part of your visitors Almost all of the JavaScript processing that you attach ... Read More

Reasons to Avoid Noscript

Tuesday November 11, 2008
Some HTML tags are no longer required with modern JavaScript The noscript tag was really useful in the early days of JavaScript to allow you to display content in your web ... Read More

Manipulating Windows

Monday November 10, 2008
JavaScript can resize and move browser windows if your visitor allows it to. The Browser Object Model contains a number of methods which allow you to request to open, move, and ... Read More

Special Characters

Sunday November 9, 2008
Regular Expressions can test for characters that are not on your keyboard. You will have occasions where you need your Javascript to compare on characters that can't be entered from the ... Read More

Random Array Sort

Saturday November 8, 2008
You can "sort" a JavaScript array into a random order While sorting and randomizing may seem to be somewhat opposite concepts, the easiest way to get the entries in an array ... Read More

Date Array Sort

Friday November 7, 2008
JavaScript is flexible in the ways that you can sort arrays. Sorting an array of dates in yyyy/mm/dd order is simple. That doesn't mean that sorting an array of dates in ... Read More

Numeric Array Sort

Thursday November 6, 2008
JavaScript can sort arrays The array sort method normally sorts JavaScript arrays in dictionary order. If your array contains numbers then you will want to sort numerically instead.

Events

Wednesday November 5, 2008
JavaScript is an event driven language There is more than one approach to learning JavaScript and in this second tutorial in the "Learn Modern JavaScript" series we look at how to ... Read More

HTML and the DOM

Tuesday November 4, 2008
The Document Object Model provides an interface between JavaScript and the web page The thing to realise about the DOM is that while it is the interface between JavaScript and the ... Read More

history

Monday November 3, 2008
Going back or going forward is possible in JavaScript by referencing the browser history. Browsers limit the amount of information about what other pages have been displayed in the browser window. ... Read More

Predefined Classes

Sunday November 2, 2008
JavaScript supports most of the same Regular Expression syntax as other languages do Some character classes are needed so frequently that there have been special codes set up to allow you ... Read More

Improved Author Time Script

Saturday November 1, 2008
Use modern Javascript coding methods to separate the behaviour of your web page from the content (HTML) and appearance (CSS) This new version of my author time script not only gives ... 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.