Menu
Easy Java Script Code

A Cross-Browser Solution for Handling JavaScript Events
One area of JavaScript that is full of inconsistencies and a source of frustration is working with browser events. In this article we implemet a cross-browser solution for handling events. More ...

How to Shuffle the Deck With Java Script
In this article, you learn how to get and set a webpage element's z-index. The example code provided used these principles to shuffle a small deck of playing cards by clicking or double-clicking on their images. You might use this information to create your own webpage card game, or for some other interesting application. More ...

Introduction to HTML5 Canvas
The canvas element is a webpage container for graphics. You can use JavaScript to draw graphics within the canvas element. Learn how to draw lines, rectangles, circles, and curves, code included. More ...

Calculators For Your Web Site
If you have a Web site where your visitor would find an online calculator very handy, with a little Java Script code you can easily provide a custom calculator right on your Web page. More ...

Working With the Keyboard in Java Script
Using Java Script you can determine which keyboard key the user pressed. You can use this information to block certain keys, to replace a key's character, or to perform an action based upon a specific key being pressed. In this article, I'll provide some basic code for working with the keyboard. 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 ...

Change the Case of a Character in a String
A common task with JavaScript is to change the case of the first letter in a string, or of an internal letter, or even change the case of an entire string. More ...

Easy Java Script Animation
There are many ways to create an animation, but the simplest way is to use Java Script along with CSS. In this article, I show you how to create simple Java Script animations. More ...

Code for Java Script Circle/Sphere Calculator
In this article you learn how to use to Java Script to create a Circle/Sphere calculator. The user enters the radius of a circle or sphere, and the calculator returns the area, circumference, surface area, and volume. The process for coding any calculator can be broken down into a step-by-step procedure. More ...

Regular Expression Basics : Match a Set of Characters
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. In this article you'll learn how to use regular expressions to match a set of of characters. 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 ...

Code for Java Script Cylinder / Cone Volume Calculator
In this article I'll show you how to use to Java Script to create a cylinder / cone volume calculator. I'll explain everything in detail so that you can learn Java Script and modify the code for your own purposes. More ...


Learn more at amazon.com

Custom Search