Password Protection Using the JavaScript Cookie Method
You can password protect a webpage or your entire website with some very simple JavaScript. In this article, I provide you with the code to password protect your website with JavaScript using cookies. This method should NOT be used for anything that absolutely MUST be password protected. Updated to add requested new features. More ...
JavaScript Code to Display Wait Cursor While Image Loads
If you have to load a large image or change a large image after the page has loaded you may want to change the mouse pointer to a wait cursor during the image loading time. More ...
Slide Show with Different Size Images
In this article, I explain how to code a slide show that can display different size images without growing and shrinking your web page. I'll explain it in detail so that you can understand and feel comfortable using the code, then you can cut and paste the code into your webpage and modify it for your purposes. More ...
Easy Animated Banners with Java Script
In this article, I will show you how to use Java Script to create an animated banner. Using Java Script allows you to edit or replace images in the animation sequence, and change the amount of time each image is displayed without doing any recompiling. More ...
Easy Slide Show Code
One of the problems with creating such a slide show is that the images should all be the same size. If the images are not all the same size, your web page may grow and shrink as the different images
are displayed. More ...
Using the Java Script Array Object
When you want to work with multiple related values, you can use the Array object. The new keyword is required when creating an array of object type data, like an array of string objects. The new keyword is not required when creating an array of simple variable types, like integers. In this article you learn about mutidimensional arrays, and study examples of how to use each Array Object method. 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 ...
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 ...
Including Special Characters in a JavaScript String
In JavaScript you define a string by placing its characters within double quotes. More ...
JavaScript 24-Hour Trainer
JavaScript has matured from making Web pages dynamic to making them interactive, providing users with a rich and memorable Web experience. This unique book-and-DVD package prepares you for the new generation of Web browser changes that are occurring on the ever-evolving Web and shows you how JavaScript is an essential component of those changes. 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 ...
Java Script to Get Selected Item from Drop-down Select List
An HTML Select list is a form control used to create a drop-down list of items from which the user can select. This article provides code to get the selected item from a select list. More ...