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 ...
Regular Expressions Lookarounds
In this article you learn how to match a pattern only when it comes after another pattern (or after not that pattern) or only when it comes before another pattern (or before not that pattern). More ...
Synchronous and Asynchronous Script Loading
Whether to use synchronous or asynchronous script loading depends upon the design of the webpage. Asynchronous script loading can cause the webpage can render more quickly. But if done without consideration for the design it can cause webpage flash or even errors. More ...
Play Music on Your HTML5 Web Page
In this article you learn how to play and control music on your webpage including adding a play list and custom controller. More ...
Easy Fading Text Banner Code
In this article you learn how to create a fading text banner, a fading text banner with several different messages that fade in and out, and a fading image banner with several different image banners that fade in and out. You also learn how to use the document.write method so that you can give a link to others to include your banners in their webpage. 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 ...
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 ...
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 ...
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 ...
Using a Select List for Navigation
An HTML Select list is a form control used to create a drop-down list of items from which the user can select. You can use a select list as a navigation element by setting each option element's value attribute to the URL of a web site or web page. More ...
Binary Subtraction with Example JavaScript Code
The first step in a binary subtraction is to replace the subtrahend with its 2's complement. But many people do this wrong because they don't understand the importance of magnitude. More ...
Easy Java Script Windows
This article gives you the basics of designing, opening, and closing browser windows using Java Script. In future articles, I will show you how to do all kinds of annoying things with windows using Java Script. More ...
