Create a Mouse Click Sound Effect
One way to add to the exerience of visiting your website is to provide sound effects. It's extremely easy to add a click sound when a visitor clicks on a link. More ...
Regular Expression Basics : How many Matches?
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 count the number of matches. More ...
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 lineCap and lineJoin Attributes
The HTML5 canvas element is a webpage container for graphics. You can use JavaScript to draw within the canvas element. In this article to learn how to draw lines with round or square end caps and how to specify that where two lines join the joint should be miter, round or beveled. More ...
Concatenating a String and Another Data Type
To concatinate a string and a number, use the styring concatination operator. This is because JavaScript converts the number to a string. To use the + operator with a number, or numbers that are in string data type requires using parseInt() or parseFloat() to convert the strings to numbers. More ...
JavaScript to Replace All Occurrences of a Substring Within a String
If you have a string with multiple occurrences of a substring within and you want to replace every occurrence of that substring with a different substring, this article provides a simple code example. More ...
Submit Forms Without CGI
There are many reasons why you might not want to use CGI forms on your Web site. For example your web site may be on a free host that does not allow custom CGI scripts. You may want to conserve bandwidth on your Web server. Or maybe you just don?t want the hassle of CGI programming. 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 ...
Round a Float to 4 Digits to the Right of the Decimal Point
On the typical PC, Java Script Math object methods can return floating point numbers with up to 16 digits to the right of the decimal point. For most purposes, this kind of accuracy is not required, nor desired, and that many digits causes nothing but confusion. In this article, You'll learn how to round a floating point number to 4 digits to the right of the decimal point. More ...
Easy Code for Animated Banner - Squeeze Text
Using JavaScript along with CSS allows us to create some fun and interesting animations. One of the easiest things to create is an animated banner. In this article I'll show you how to use JavaScript and CSS to create an animated banner that squeezes text and which you can easily customize for your own use. 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 ...
Code to Drag and Drop an Image Anywhere on a Webpage
HTML5's drag-and-drop standard is designed to let you drag text or data from a textbox or table cell, to another textbox or table cell. But what if you want to drag an image, not to a target element, but to anywhere on a webpage. Then HTML5 drag-and-drop falls short. More ...
