Easy JavaScript Form Design
A form is an html element that allows users to enter information. To experiment with forms in JavaScript, replace the method and action attributes in the form opening tag with onSubmit='javascript return false;'
to prevent the form from being submitted to the server. More ...
Make Your Own Graphical Digital Clock
One of the most fun, interesting, and educational things you can do with Java Script is to make your own image-based digital clock. The fun part is selecting or creating your own images for the digits and other graphical elements of the clock. You can use 3D digits, digits that look like baby blocks, or digits made out of animals. More ...
Java Script Code to Factor Numbers
Being able to factor numbers is an important skill, one that is necessary to work with equations, fractions and polynomials. In this article, I show you how to use Java Script to factor a number, therefore you will learn a little mathematics and a little programming at the same time. More ...
Easy JavaScript FileReader Code
The JavaScript FileReader object allows web pages to read files stored on the user's computer. Files may be selected using the input element, or selected with a drag and drop operation. More ...
Introduction to JavaScript Programming
JavaScript is a wonderful little programming language. It's a client-side, meaning it runs right on your local computer, not on the web server, and it's a scripting language meaning
it's run by an interpreter. More ...
Code to Fade Between Two different Pictures
You've probably seen websites where a picture fades out, being replaced by another picture that fades in. This effect is called a visual transition and it's easy to do with just a tiny bit of code. More ...
Including Special Characters in a JavaScript String
In JavaScript you define a string by placing its characters within double quotes. More ...
Replace Drop-down with Drag-and-drop
From a webpage designers point of view, drop-down lists require a lot of html tags. Wouldn't it be nice if you could just let the user drag-and-drop text into a simple text box. You can! More ...
Password Protection Using the JavaScript Cookie Method
You can password protect a webpage or your entire website with some very simple JavaScript. In this article, I provide you with the code to password protect your website with JavaScript using cookies. This method should NOT be used for anything that absolutely MUST be password protected. Updated to add requested new features. More ...
Display a Value in Currency Format
To display a value in currency format we first round the value to the required number of decimal places, then determine if we need to add trailing zeros. More ...
What is a Regular Expression?
A Regular Expression (regex) is a sequence of characters that define a pattern that allows you to search, match, locate, replace, manipulate, and manage text. Regular expressions are very powerful, but also difficult to understand and complicated to use. More ...
Debugging JavaScript : Coercions
JavaScript is not a tightly typed language. Sometimes this comes in handy, but other times it can cause problems. More ...
