Equals, Equals Equals, or Equals Equals Equals
Friday July 31, 2009
JavaScript uses up to three equals signs next to one another.
JavaScript uses the equals sign for assigning values to fields as well as for comparing fields. This tutorial covers what ... Read More
Ordered Dropdowns
Thursday July 30, 2009
JavaScript can bring order out of chaos
Sometimes you want your visitors to select several entries from a list, perhaps even all of the entries in the list, and you need ... Read More
Moving Diagonally
Wednesday July 29, 2009
Movement doesn't just have to be horizontal or vertical it can be both at the same time.
Objects can move in more directions than just horizontally and vertically. In the thirteenth ... Read More
Ideas Machine With Links
Tuesday July 28, 2009
Often a simple change to a script offers more opportunities.
With this JavaScript I have made a slight modification to my ideas machine JavaScript so that the random idea that is ... Read More
Inheritance and "constructor"
Monday July 27, 2009
You don't need to create every object from scratch.
When you base one object on another object everything in the original object is also available in the new object including what ... Read More
removeChild
Sunday July 26, 2009
Removing HTML from a web page using the DOM is the easiest way to update the page.
So far in examining how to use the DOM the tutorials have concentrated mostly ... Read More
Current Page References
Saturday July 25, 2009
JavaScript please tell me what page I am on
If you link the same external JavaScript into more than one of the pages on your site then there may be times ... Read More
Transition Image Effects
Friday July 24, 2009
JavaScript can generate both fade and wipe effects when replacing one image with another.
Creating a transition effect when swapping one image for another is trivial in JScript where Internet Explorer ... Read More
Array Maximum and Minimum Values
Thursday July 23, 2009
Add max and min methods to your JavaScript arrays to make it easier to locate the smallest and largest values in the array.
With JavaScript we are not limited to the ... Read More
Perpetual Motion
Wednesday July 22, 2009
JavaScript can do things on the web page that do not have a parallel in the real world.
It may be contrary to the laws of physics and so can't happen ... Read More
Deleting Cookies
Tuesday July 21, 2009
JavaScript doesn't have a command for deleting cookies.
Usually when you create a cookie you either make it a session cookie (which is automatically deleted when the browser is closed) ... Read More
prototype
Monday July 20, 2009
JavaScript objects can share methods
While each object you create in JavaScript will need its own properties in order to store the state of the object, in most cases having separate ... Read More
getElementsByClassName
Sunday July 19, 2009
When JavaScript doesn't provide the function we need we can always add our own.
One advantage of the JavaScript language is that you can extend the language to add your own ... Read More
Remove Formatting from Numbers
Saturday July 18, 2009
JavaScript can reformat your visitor's input
It is much friendlier to your visitors if you allow them to format the numbers, currency values, phone numbers etc in whatever format they prefer. ... Read More
Disable or Remove Images
Friday July 17, 2009
JavaScript can help you test your web pages.
Not everyone using the web has a browser that can display images and some people just prefer to turn images off in their ... Read More
No Right Click Script
Thursday July 16, 2009
Some people try to use JavaScript for really pointless tasks
No right click scripts don't prevent people from viewing your page source, they just annoy your legitimate visitors who like to ... Read More
Reversing Direction
Wednesday July 15, 2009
You can change directions when moving objects with JavaScript
So far all the objects we have moved have gone to where we sent them and then stopped with no further animation ... Read More
"Regular Expressions Cookbook"
Tuesday July 14, 2009
JavaScript regular expressions work similar to regular expressions in other languages.
A book doesn't have to be only about JavaScript in order for it to have value to those writing JavaScript. ... Read More
Dot Notation and "this"
Monday July 13, 2009
Some words have special meanings when used with objects - :this" is one of them.
In the seventh tutorial on Object Oriented JavaScript we look at how you can use "this" ... Read More
getElementsByTagName
Sunday July 12, 2009
JavaScript can access collections of any HTML tag within the web page.
Now that we have considered some older but still useful methods of accessing and updating information in a web ... Read More
Buy Now Hover Button
Saturday July 11, 2009
You don't have to pay for JavaScript code, there is always a free version around somewhere
One script that seems to be a popular item for internet marketers to try to ... Read More
valueOf and toString
Friday July 10, 2009
There are two methods that all JavaScript objects have.
Every object that you define in JavaScript has at least two methods available - valueOf() and toString(). These methods will return a ... Read More
Linking Three Dropdowns
Thursday July 9, 2009
Dynamically update dropdown lists based on other dropdowns using JavaScript
Updating a second dropdown's content based on a user selection in a first dropdown is a common requirement. Of course having ... Read More
Speed of Movement
Wednesday July 8, 2009
JavaScript can control how fast things move on your web page.
Depending on just what it is that you want to have moving around on your web page you may want ... Read More
The JavaScript Modulo Bug
Tuesday July 7, 2009
JavaScript doesn't get everything right.
One of the things that JavaScript gets wrong is modulo arithmatic where for any positive modulo number the possible values should be between zero and one ... Read More
Creating New Objects Without Copying Existing Ones
Monday July 6, 2009
JavaScript doesn't limit you to using the objects that it defines, you can also create your own.
JavaScript provides several different ways to define new objects, Here we look at one ... Read More
innerHTML
Sunday July 5, 2009
JavaScript has a simple way of interacting with HTML
In the sixth Document Object Model tutorial we look at the simplest way of referencing the content of your web page is ... Read More
Strings to Numbers
Saturday July 4, 2009
HTML doesn't provide a way to enter numbers so JavaScript needs to convert them from text
JavaScript provides so many different ways to convert text strings to numbers that there will ... Read More
Split a Line
Friday July 3, 2009
JavaScript can provide advanced text manipulation.
One problem with splitting text across multiple lines in JavaScript is how to avoid splitting the line in the middle of a word. This function ... Read More
Screen Resolution
Thursday July 2, 2009
JavaScript can easily retrieve useless information about the computer screen as well as more useful information about the size of their browser window
Not all of your visitors will use the ... Read More
Moving Vertically
Wednesday July 1, 2009
Web pages are two dimensional
When we place objects on our web page to be animated with Javascript we are not limited to just having them move from side to side. ... Read More

