Menu
Easy Java Script Code

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 ...

Easy Code to Sort a Table by Column
A Table is a powerful way to present information. You can make your table even more powerful by giving users the ability to sort it by different columns. In this article, I give you some simple Java Script code that you can use to make almost any table sortable by different columns. 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 ...

Code for Java Script Cube / Box Volume Calculator
In this article I'll show you how to use to Java Script to create a Cube / Box Volume calculator. With this calculator, the user inputs the side dimension of a cube or the height, width and length of a box, and the calculator will return the volume. I'll explain everything in detail so that you can learn Java Script and modify the code for your own purposes. More ...

Including Special Characters in a JavaScript String
In JavaScript you define a string by placing its characters within double quotes. More ...

Java Script Code to Move Items Between Select Lists
In this article you'll learn how to use Java Script to move items from one select list to a second select list. I'll explain the code in detail so that you'll be able to fully understand and modify it for your own use. 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 ...

Sams Teach Yourself HTML5 in 10 Minutes
One important part of the new HTML5 specification is the new date-time picker control. In this book you create a webform that uses the new date-time picker control, and you'll also create a small PHP server-side program that displays the value you entered into the date-time picker control when you click the Submit button to show how you can extract data from the control on the server. More ...

JavaScript Code to Restrict Keyboard Entries
This article shows you how to restrict the user's keyboard input to a textbox to only the digits 0 and 1. You should to be able to modify the code for your own purposes. More ...

Code for a Less annoying Popup Window
In previous articles I have stated my opinion that it very discourteous and stupid for Webmasters use advertising popup windows on their Web sites. They get paid $0.01 or less to shove a popup window in your face. More ...

Calculators for Your Web Site : Loan Payment Calculator
In this article, I provide you with Java Script code for a loan payment calculator. The process of designing a loan payment calculator, like any calculator, can be divided into the five steps. More ...

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 ...


Learn more at amazon.com

Custom Search