Menu
Easy Java Script Code

How Far Did the User Scroll?
In this article you learn how to use Java Script to determine how far a user scrolled your webpage before leaving, and how to log this data on the server with an example using ASP. More ...

Debugging JavaScript : Coercions
JavaScript is not a tightly typed language. Sometimes this comes in handy, but other times it can cause problems. More ...

Let Your Web site Visitors Set Font Size
In this article, you'll learn that it requires only a few lines of Java Script to let the visitors to your Web site control the font size. You'll also learn how to use a cookie to store their preference on their computer. More ...

Easy JavaScript Form Design
A form is an html element that allows users to enter information. To experiment with forms in JavaScript, replace the method and action attributes in the form opening tag with onSubmit='javascript return false;' to prevent the form from being submitted to the server. More ...

Code for Java Script Circle/Sphere Calculator
In this article you learn how to use to Java Script to create a Circle/Sphere calculator. The user enters the radius of a circle or sphere, and the calculator returns the area, circumference, surface area, and volume. The process for coding any calculator can be broken down into a step-by-step procedure. More ...

Easy HTML5 Drag and Drop
In this example I show you how to use HTML5 drag-and-drop to make a nice little application that could be used to teach children which classification different animals belong in. This example includes only the minimal code for the application to work. More ...

Code for a Less annoying Popup Window
In previous articles I have stated my opinion that it very discourteous and stupid for Webmasters use advertising popup windows on their Web sites. They get paid $0.01 or less to shove a popup window in your face. More ...

JavaScript to Add and Remove Rows and Cells from a Table
If you need a client-side application where you have a table that you want to enable the user to add and remove rows and cells, this article provides you with JavaScript code to easily accomplish that. More ...

Easy Code to Add Mouse Trails to Your Webpage
Mouse trails cause the mouse pointer to be followed by a trail of small images when the user moves it. This makes it easier for the user to locate the mouse pointer on the screen. In this article, I give you Java Script code that will cause mouse trails on your webpage. 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 ...

Easy Picture Zoom Code
This article provides the minimal code for four different methods to add zoom to the pictures on your Web page. The first method uses a single image. When you click on the image a JavaScript function is used to enlarge the image. More ...

Easy Expanding Menu Code
Having lots of high quality content isn't enough. Visitors must know that the content is there to be had, and it must be easily accessible. In this article, I provide you with simple, straight forward code that creates an expanding menu. More ...