Menu
Easy Java Script Code

JavaScript Code to Save and Load a Table Using HTML5 Web Storage
HTML5 brings us web storage, providing methods to store keyword/value data pairs in the user's browser. This example gives you JavaScript Code to allow user's to save and load a table using Web Storage. More ...

HTML5 Canvas JavaScript Code to a Draw Bezier Curve
The HTML5 canvas element allows you to, when you don't need an extremely complex image, not require your webpage to load an image file, but instead to use JavaScript to the draw the graphics on your webpage. More ...

Easy JavaScript Web Storage Code
In the past allowing web pages to store data on your PC was considered too dangerous. Cookies can not be considered permanent and reliable storage. HTML5 brings us web storage, providing methods to store keyword/value data pairs in the user's browser. More ...

Easy JavaScript Picture Selector Code
Suppose you want to create a digital photo album to display a group of pictures, but you don't want the page to be too large. One solution would be to display only one full size picture, and the other pictures as small thumbnail images. More ...

Regular Expression: Alternation
In this article you learn how to create an alternation regular expression that will match alternate patterns in a string. More ...

Date Picker For Your Web Site
In this article, I give you the code for a date picker calendar and I explain the code in detail so you'll feel comfortable modifying it for your own use. More ...

Easy Java Script Code to Fill Array With Random Numbers
The code I present here might not be the fewest lines possible to fill an array With random numbers, but it is the easiest to understand. More ...

A JavaScript Function That Returns a Function
Its a fad now in JavaScript to code functions that return functions in order to avoid declaring global variables but the procedure is inefficient and unnecessary. 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 ...

Using the Java Script Date Object
When you want to work with a date in Java Script, you need to use the Date object. In this article, you learn how to create a Date object for today, or for any date in the past or future. You learn how to find the difference between two dates, and how to format a date string any way that you desire. You also learn how to validate a date string returned from a text box in a form, which involved an introduction to JavaScript regular expressions. 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 ...

JavaScript to Set Checkbox to Readonly
The HTML checkbox element does not have a readonly attribute. This example provides a very simple work around that might help you solve the checkbox readonly problem in your own application. More ...


Learn more at amazon.com

Custom Search