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

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

Javascript DOM

Sunday May 31, 2009
JavaScript uses the Document Object Model to access and update the web page. Over the last few months our Sunday tutorials have been looking at Ajax where we retrieve information from ... Read More

Is Java Enabled?

Saturday May 30, 2009
Javascript isn't Java but you can use one to test if the other is supported You can use a short piece of Javascript code to check whether the browser has a ... Read More

Image Zoom

Friday May 29, 2009
JavaScript can't maintain the quality of an image if you resize it but it can allow the image to be dynamically resized. This simple Javascript allows your visitors to resize the ... Read More

JScript

Thursday May 28, 2009
JScript isn't JavaScript and Internet Explorer runs JScript not JavaScript In many ways JScript is a lot more powerful than Javascript since it can do many things that Javascript can't and ... Read More

Random Start Position

Wednesday May 27, 2009
You can let JavaScript make decisions by using Math.random The fourth tutorial in the web page animation series shows you how to position the object randomly on the screen and then ... Read More

JavaScript Library or Code Yourself

Tuesday May 26, 2009
Thyere is more than one way to write JavaScript Those who write their own JavaScript rather than just using someone else's script still do not necessarily need to write all the ... Read More

Day Selection

Monday May 25, 2009
Different parts of the world expect dates in different formats. Different months contain different numbers of days. These two "problems" mean that the way that you offer for your visitors to ... Read More

Ajax and Security

Sunday May 24, 2009
Just how secure is Ajax? The fifteenth tutorial on Ajax looks at the security issues associated with using Ajax. An Ajax application can be just as secure as any other computer ... Read More

Forced Frame Breakout

Saturday May 23, 2009
Javascript can help stop our pages appearing within someone else's page. Some web sites will embed your page into a page on their site via server side processing and then place ... Read More

Disabling the Default Action

Friday May 22, 2009
When you attach an action with JavaScript you don't necessarily want the original action to be performed too. There are a number of objects on a web page that have their ... Read More

Image Protection

Thursday May 21, 2009
There is no way to stop any image you place on a web page from being stolen by anyone who really wants it because they will already have a copy ... Read More

Scrolling With the Page

Wednesday May 20, 2009
There are some things that you want to keep visible on the page even when it is scrolled and some older browsers don't support position:fixed In this third tutorial on JavaScript ... Read More

Making Events Unobtrusive

Tuesday May 19, 2009
Some old JavaScript put the event handlers right inside the HTML tags themselves In order to properly make our JavaScript unobtrusive it isn't enough to just move the content of script ... Read More

Combining onloads

Monday May 18, 2009
A common cause of scripts breaking when you add more than one to the same page is where each tries to assign something different to the onload event. The process of ... Read More

Caching of Requests

Sunday May 17, 2009
Many people misunderstand the real difference between GET and POST One problem with using GET requests with Ajax is that such requests were designed to retrieve static information. This means that ... Read More

What Javascript Can Not Do

Saturday May 16, 2009
Javascript can't end all wars or feed the starving millions While there are a great many things that Javascript can be used for to enhance your web pages and improve your ... Read More

Your Favorites

Friday May 15, 2009
Using a cookie, javascript can remember your preferences for the next time you visit a web page Set up a list of links to your own favourite web pages from this ... Read More

Rotating Object

Thursday May 14, 2009
Going around in circles means your JavaScript never has to stop. Animate an object (for example an image or a block of text) by having it continually circling around the centre ... Read More

Hide Until Page Finishes Loading

Wednesday May 13, 2009
JavaScript can't update elements within the web page until they are loaded. The second animation tutorial looks at the simplest action that we can take now that we have defined a ... Read More

Swatch Beats

Tuesday May 12, 2009
Only a watch company would try to reinvent time. Several years ago the people that make the Swatch came up with their own new method of time keeping that they call ... Read More

Standard Week Number

Monday May 11, 2009
The International Standards Organisation have a rather unusual definition for working out week numbers. Not only do the week numbers that the ISO has defined assume the week runs from Monday ... Read More

Multiple Requests

Sunday May 10, 2009
You can submit a second Ajax request before the first returns provided you code it the right way. In all of the preceding Ajax tutorials we have looked at how to ... Read More

No Copy

Saturday May 9, 2009
Do you know how web browsers really work when displaying pages? How do you stop people from copying things from your web page? Well there is no technical solution but all ... Read More

Password Protection

Friday May 8, 2009
Password protection is best done on the server Javascript is not really suited to the application of password protection to a web page since it is easy for anyone to view ... Read More

Cookie Toolbox

Thursday May 7, 2009
The only file access in Javascript is to use cookies Start using cookies with your web pages quickly and easily with this collection of functions that handle everything for you. Cookie Toolbox

Web Page Animation

Wednesday May 6, 2009
Learn how to add animation to your page with JavaScript In this tutorial series we will look at how to set up an animation effect on our web page using DHTML ... Read More

Daylight Saving Time

Tuesday May 5, 2009
JavaScript can determine if your visitor's location uses daylight saving time. JavaScript does not directly have access to a flag indicating if your visitor is on daylight saving time or not ... Read More

JavaScript Dates

Monday May 4, 2009
The JavaScript Date Object is the best way to manipulate dates and times in the browser Not only doe the Date Object have a whole lot of built in functionality that ... Read More

Aborting Ajax

Sunday May 3, 2009
Sometimes when waiting for an Ajax response the situation changes so that you no longer need it. Since Ajax is normally run asynchronously where we don't wait for the response to ... Read More

Calendar Generator

Saturday May 2, 2009
JavaScript can make writing HTML easier. If you write your HTML by hand or if your WYSIWYG editor doesn't have an option to generate a particular construct such as a calendar ... Read More

Ideas Machine

Friday May 1, 2009
JavaScript can present your visitors with alternatives. Get your visitors started on performing an action by presenting them with a randomly selected idea related to that action. Of course some may ... 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.