Menu
Easy Java Script Code

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

Java Script Trim Function
In any case, I offer the following code for a Java Script Trim function. My goal for this code is not to set a speed record or demonstrate my programming prowess, but instead to provide something that is easy to understand so that you might feel confident in using it in your own projects. 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 ...

Easy Java Script Code for Sideways Slide show
Sideways sliding slide shows are very popular on the Web, especially with companies that want to display their products or feature various aspects of their business. It's not difficult to program a sideways slide show, and in this article I show you how to create one with some basic Java Script. 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 ...

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

Code to Fade Between Two different Pictures
You've probably seen websites where a picture fades out, being replaced by another picture that fades in. This effect is called a visual transition and it's easy to do with just a tiny bit of code. More ...

Prevent Automated Form Submissions With Java Script
Spammers have robots that search the Web for such forms and when they find one, they use automated programs to submit thousands of spam. Webmasters have developed a method to prevent such abuse. In this article, I show you three different examples of using Java Script to implement this method for your own web form. 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 ...

Creating Java Script Dynamic or anonymous Functions at Runtime
In Java Script you can code a function at design time, or you can have Java Script write the function code during execution. A function that is created at runtime is called an anonymous or dynamic function. 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 ...


Learn more at amazon.com

Custom Search